Skip to content

Commit c1b8832

Browse files
tmilnthorpangularsen
authored andcommitted
Adding SourceLink properties and NuGet package (#538)
1 parent dda6a62 commit c1b8832

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
@@ -25,11 +25,17 @@
2525
<!-- Workaround for building with dotnet CLI and targeting .NET 3.5: https://github.com/Microsoft/msbuild/issues/1333#issuecomment-296346352 -->
2626
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
2727
<NoWarn>CS1701;CS1702;CS1705;CS0618;CS0809</NoWarn>
28+
29+
<!-- SourceLink -->
30+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
31+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
32+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2833
</PropertyGroup>
2934

3035
<!-- NuGet references that work for both signed and unsigned -->
3136
<ItemGroup>
3237
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" PrivateAssets="All" />
38+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
3339
</ItemGroup>
3440

3541
<!-- Exclude obj folder from default inclusion pattern -->

0 commit comments

Comments
 (0)