How can I attach the MVC 6 source code or dlls into my project so that I could debug into it. I need to see the actual flow of few things.
2 Answers
- Clone the repo(s) that you want for debugging from GitHub
- Add a global.json file to your solution, similar to the one here
In the sources property, add the path(s) to the src folders that you got from github. For example:
{ "sources": [ "src", "D:\\dev\\aspnet\\mvc\\src" ] }Run and the sources in
D:\dev\aspnet\mvc\srcshould be used instead of the NuGet packages from NuGet/MyGet.
PS: Make sure you are using the sources and the packages from the correct branch. Otherwise you might hit strange issues like the one described here
4 Comments
eadam
What's the proper way of building the downloaded source? I receive so many error no matter which repo i get. Are there any steps involved?
Victor Hurdugaci
Can you give more details about the errors? The code should build without any additional steps. All you need is to have the latest KRE, assuming you got the code from the dev branch.
frostymarvelous
This is what I did to get me throughhttps://github.com/dotnet/cli/issues/2966#issuecomment-245876542
HamedH
how about new version of visual studio that does not have global.json?