D
D
Dima Sokolov2018-02-23 12:04:49
.NET
Dima Sokolov, 2018-02-23 12:04:49

How to view .NET source code in Visual studio?

How to view the .NET source code in Visual studio so that you can walk through the methods and classes, right in the studio without a debugger.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
eRKa, 2018-02-23
@dimka11

Options/Debugging/General check "enable .net framework source stepping". The download of the PDB file with sources will start immediately. Just keep in mind that they weigh a lot, and you will need enough space on the hard.
PS: If you want to debug .net, then you need to do These settings .
If you just want to navigate through the source, that one is more complicated. For normal navigation, links in the metadata to the source are needed. This was done only for core2, but over time they promise to add it to all versions. Personally, I use the "navigation to source / decompile methodes" setting in the resharper, but as an option there is an extension for vs Ref12, in this case, when got to defition in the browser, a page opens at https://referencesource.microsoft.com with the source.
Read more here

K
Konstantin Borovik, 2018-02-23
@PushMeNow

If you mean .net framework libraries, then no way. their source code is classified information. you can see only the metadata (which class contains which methods, fields, etc. and a description of what they do), select the desired class -> Go To Definition or you can use the Object Browser (there you can generally see what the namespace consists of).

M
mefutu, 2018-03-01
@mefutu

Resharper to the rescue, it has a built-in decompiler for dll

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question