简体   繁体   English

如何使用Visual Studio Code查看.dll文件的所有元数据?

[英]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.

相关问题 找不到Visual Studio 2017元数据文件EntityFramework.dll - Visual Studio 2017 Metadata file EntityFramework.dll could not be found 如何在Visual Studio Express 2012中将源代码添加到.dll文件? - How to add source code to .dll file in Visual Studio Express 2012? 如何在 Visual Studio Code 中添加 DLL 参考 - How to add DLL reference in Visual Studio Code 如何在Visual Studio中查找所有源代码和引用的dll中的类/方法的所有引用? - How to find all reference of a Class/Method in all source code AND referenced dll in visual studio? 如何将Visual Studio中的所有源代码导出到文本文件中? - How to export all the source code from Visual Studio into a text file? Visual Studio 2010:找不到元数据文件“ ... / Debug / Graph.dll” - Visual Studio 2010: Metadata file “…/Debug/Graph.dll” could not be found 如何在 Visual Studio Code 中将 DLL 添加到 C# 程序中? - How to add a DLL to a C# program in Visual Studio Code? 如何从C#代码在Visual Studio中创建本机DLL? - How to create native DLL in Visual Studio from C# code? 如何在 Visual Studio 2017 中查看文件属性 - How to view file properties in Visual Studio 2017 如何正确地将dll文件添加到Visual Studio的引用中? - How to add a dll file into reference of Visual Studio properly?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM