简体   繁体   中英

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.

在此处输入图片说明

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. (What else is available?) I can see that it also reads a .cs file name. If possible I want to know all the files included in this .dll as well.

This .dll is currently undocumented but VSCode have intellisense for its class already hinting that there might be a way to list them all. 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.

Ok, I have tried ILSpy for VSCode and most of the time it did not decompile or just nothing happen when running the command. dotPeek does not work on a mac.

The solution I found is actually Visual Studio Community for macOS. Create a dummy project then add DLLs to the project then an "Assembly Browser" tab will pops up if you double click them.

Works flawlessly, also with search bar.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM