Skip to content

Commit 5e19626

Browse files
author
Chris Martinez
committed
Add SourceLink information
1 parent 2dee03e commit 5e19626

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

build/nuget.props

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageOutputPath Condition=" $(PackageOutputPath) == '' ">$(MSBuildThisFileDirectory)..\bin</PackageOutputPath>
1313
<NoWarn>NU5118;$(NoWarn)</NoWarn>
1414
</PropertyGroup>
15-
15+
1616
<ItemGroup Label="NuGet">
1717
<None Include="$(MSBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="" Visible="false" />
1818
</ItemGroup>
@@ -21,5 +21,16 @@
2121
<ItemGroup Label="NuGet">
2222
<ReleaseNotes Include="$(BuildReleaseNotes.Split('|'))" />
2323
</ItemGroup>
24-
24+
25+
<!-- REF: https://github.com/dotnet/sourcelink/blob/master/README.md -->
26+
<PropertyGroup Label="SourceLink">
27+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
28+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
29+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
30+
</PropertyGroup>
31+
32+
<ItemGroup Label="SourceLink">
33+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
34+
</ItemGroup>
35+
2536
</Project>

0 commit comments

Comments
 (0)