SourceLink.props 861 B

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <!-- https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/ -->
  4. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  5. <Deterministic>true</Deterministic>
  6. <GitRepositoryRemoteName>github</GitRepositoryRemoteName>
  7. <!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
  8. <PublishRepositoryUrl>true</PublishRepositoryUrl>
  9. <!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
  10. <EmbedUntrackedSources>true</EmbedUntrackedSources>
  11. </PropertyGroup>
  12. <ItemGroup Condition=" '$(Configuration)' == 'Release' ">
  13. <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
  14. </ItemGroup>
  15. </Project>