You can find more information on the GitHub repository of SourceLink: If you want to use deterministic build, you can use the Deterministic and ContinuousIntegrationBuild elements to use a deterministic way to compute paths: true True True True Tip: If you want to enable SourceLink for all projects in a solution, you can add a file named at the root of your repository with the previous xml fragment. You can also add some optional properties to control SourceLink. All you have to do is to add a reference to the NuGet package. SourceLink is very simple to enable in your build. Note: SourceLink also works with GitLab or Visual Studio Team Services (VSTS) #Create a NuGet package with SourceLink enabled Let's see how you can do the same for your projects! The most downloaded NuGet package Newtonsoft.Json now uses SourceLink, so you can step into the package code from Visual Studio. It adds some metadata to the PDB file to remap the local files to the files on GitHub, so Visual Studio can download the files when needed. Lots of NuGet packages have their source code on GitHub, so it would be very convenient to automatically get the code from the GitHub repository. However, when you have an issue with a NuGet package and you want to debug it, it's hard because you don't have the source code. Using a NuGet package is a very convenient way to add a dependency to your project.
0 Comments
Leave a Reply. |