From the course: Creating, Debugging, and Deploying NuGet Packages in ASP.NET

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Debugging NuGet packages with Source Link

Debugging NuGet packages with Source Link

- [Instructor] Another debugging technique or method is enabling SourceLink. SourceLink is a technology that enables your debugger to link the binaries of a NuGet package with the original source code in repository. So SourceLink is important because it links your binaries to the exact same source code, enabling you to debug as if you had the original source files right in your project. Other than that, whether debugging locally or remotely, SourceLink ensures that you are always working with the correct version of the source code, reducing discrepancies and errors. Last but not least, by sharing packages with SourceLink enabled, team members and other developers can debug issues effectively even if they don't have direct access to the source code repository. It's also important to know that SourceLink does support different source control providers like GitHub, Azure DevOps, Bitbucket, et cetera. Now let us go to Visual Studio and see it in action. In Visual Studio, I have opened the…

Contents