SourceLink allows for source code debugging of .NET assemblies from NuGet. Developers who download the package and have SourceLink enabled in Visual Studio can step into its source code.
More info:
https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink
Happy to pick this up, but thought I'd raise it as an idea first and see if there are any potential issues.
Wow, that looks super cool! Go for it!
Not sure how to test it but.. we'll get to that ;-)
I think it is only for dotnet core:
https://github.com/dotnet/sourcelink#prerequisites
Perhaps this applies better? https://blog.nuget.org/20181116/Improved-debugging-experience-with-the-NuGet-org-symbol-server-and-snupkg.html
I've been testing with sourceLink for some time now. The only thing which you need to do is add the (pre-release) nuget package:
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All"/>
</ItemGroup>
@dampee hmmm 馃 I did try this & had no luck when I added the NuGet reference to that package. The Powershell build was not creating the nuget artifacts with the XML metadata for the commit SHA & the GitHub repo URL that SourceLink should be creating.
Hence from my understanding of how SourceLink works was that it needs to work with the newer SDK CSProj files. Once I had that done I was going to come back to try adding SourceLink in order to get this developer debugging story done.
A PR for this is here @dampee @kristianschneider & @tcmorris feel free to test & prod it too if you like - https://github.com/umbraco/Umbraco-CMS/pull/5359
Nice one @warrenbuckley not sure I'll have much time to test this, but wanted to say cheers for looking into it and the relevant changes to make it work. #H5YR
This item has been added to our backlog AB#1065
Most helpful comment
Perhaps this applies better? https://blog.nuget.org/20181116/Improved-debugging-experience-with-the-NuGet-org-symbol-server-and-snupkg.html