SourceLink 2 RC to Enable source link support


SourceLink 2 has been published to NuGet in prerelease. I need some projects to try it out on before shipping it. Please try it out or let me know and I may be able to help.

I’ve completely revised the documentation here:

The quick notes are simply to add to your project file, these three references:

<Project Sdk="Microsoft.NET.Sdk">
    <PackageReference Include="SourceLink.Create.GitHub" Version="2.0.0-*" PrivateAssets="all" />
    <DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.0.0-*" />
    <DotNetCliToolReference Include="dotnet-sourcelink" Version="2.0.0-*" />

The to try it out locally when not on a CI server do dotnet build /p:ci=true. You can then use the dotnet sourcelink tool to inspect your handiwork. Here is an example pull request to aspnet.mvc.

If you can help me on-board this project to the .NET Foundation, that would also be great.

.NET Foundation Website | Blog | Projects | Code of Conduct