简体   繁体   中英

Is there a way to browser Source Code when pressing F12 if I only have the DLL and PDB files?

I have a very large solution (384 projects), and I usually work in only one of these projects at a time. So when opening that project alone, pressing F12 brings me only to the metadata page of the used DLL. My project has reference to the DLL files created in the bigger solution.

Is there a way to browse the Source Code when pressing F12 if I only have the DLL and PDB files?

There's no official way of doing so, but since a lot of years, there's a tool/extension called Reflector which disassembles MSIL into readable C# code .

It works exactly as you want... You press F12 and it decompiles the code to show C# code. BTW, it won't never be the exact source code as you developed in your solution. It's a translation back from MSIL to C#.

It's not free, but AFAIK, there's a trial and maybe it's worth the price for you...

JetBrains(ReSharper 的制造商)提供他们自己的 MSIL 反编译器,称为 dotPeek https://www.jetbrains.com/decompiler/您可以启用源服务器支持,它会在您 F12 时显示反编译的源代码。

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