How can I debug the source code of .Net Core or the Base class libraries (coreFx)?

后端 未结 3 1641
一生所求
一生所求 2021-02-15 15:23

I am using .NET Core 1.0 and Visual Studio 2015 Update 3 to make a simple Asp.Net Core MVC website.

How can I debug my application and \"Step

3条回答
  •  失恋的感觉
    2021-02-15 15:37

    I wrote this article more than 1 year ago so it's a bit out of date but the idea is still the same:

    1. You sync to the correct tag from GitHub. In your case, you probably want to sync to tag 1.0.0
    2. Build that repository by running build.cmd or build.sh
    3. Add the src folder path to your app's global.json file. For example, if you cloned Security in D:\Security, then you add D:/Security/src to global.json in the projects property.
    4. Rebuild everything and it should work.

    PS: If you use VS and don't see immediately the new code, try restarting it. It's a known issue that sometimes it doesn't pick up the changes to global.json

提交回复
热议问题