[英]How to view all metadata of a .dll file with Visual Studio Code?
When I press follow symbol into a code in .dll format, I ended up in a [metadata] file like below. 当我将跟随符号按成.dll格式的代码时,最终出现在[元数据]文件中,如下所示。
It is useful because even without full source code you can also see other fields in a particular class. 这很有用,因为即使没有完整的源代码,您也可以看到特定类中的其他字段。 But the question is I would like to know all other classes in this .dll as well. 但是问题是我也想知道这个.dll中的所有其他类。 (What else is available?) I can see that it also reads a .cs file name. (还有什么可用的?)我可以看到它也读取了一个.cs文件名。 If possible I want to know all the files included in this .dll as well. 如果可能,我也想知道此.dll中包含的所有文件。
This .dll is currently undocumented but VSCode have intellisense for its class already hinting that there might be a way to list them all. 该.dll当前未公开,但VSCode的类已经具有intellisense的含义,暗示可能有一种列出它们的方法。 The problem is I don't know the exact name of classes. 问题是我不知道类的确切名称。 The only way is to hope that this .dll use a good namespace practice and try to follow every symbol that pops up after typing a namespace. 唯一的方法是希望此.dll使用良好的命名空间做法,并尝试跟随键入命名空间后弹出的每个符号。
Ok, I have tried ILSpy for VSCode and most of the time it did not decompile or just nothing happen when running the command. 好的,我已经为VSCode尝试了ILSpy,并且大多数时候它没有反编译,或者在运行命令时什么也没有发生。 dotPeek does not work on a mac. dotPeek在Mac上不起作用。
The solution I found is actually Visual Studio Community for macOS. 我找到的解决方案实际上是macOS的Visual Studio社区 。 Create a dummy project then add DLLs to the project then an "Assembly Browser" tab will pops up if you double click them. 创建一个虚拟项目,然后将DLL添加到该项目中,然后双击它们将弹出“汇编浏览器”选项卡。
Works flawlessly, also with search bar. 完美运行,也可以在搜索栏中使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.