Skip to content

Commit f0e52f1

Browse files
tmilnthorpangularsen
authored andcommitted
Adding SourceLink properties and NuGet package (#538)
1 parent 608fed3 commit f0e52f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UnitsNet/UnitsNet.Common.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,17 @@
2323
<TargetFrameworks>netstandard2.0;net40</TargetFrameworks>
2424
<RootNamespace>UnitsNet</RootNamespace>
2525
<NoWarn>CS1701;CS1702;CS1705;CS0618;CS0809;CS1591</NoWarn>
26+
27+
<!-- SourceLink -->
28+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
29+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
30+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2631
</PropertyGroup>
2732

2833
<!-- NuGet references that work for both signed and unsigned -->
2934
<ItemGroup>
3035
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" PrivateAssets="All" />
36+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
3137
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
3238
</ItemGroup>
3339

0 commit comments

Comments
 (0)