Skip to content

Commit 19c89fc

Browse files
committed
🔧 Add symbols package per SourceLink guideline
Following latest guidelines: https://github.com/dotnet/sourcelink - Add symbols package - Don't include PDB in main nuget (smaller download size), remove `AllowedOutputExtensionsInPackageBuildOutputFolder`
1 parent ecd75c9 commit 19c89fc

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

UnitsNet.Serialization.JsonNet/UnitsNet.Serialization.JsonNet.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@
2727
<TargetFramework>netstandard2.0</TargetFramework>
2828
</PropertyGroup>
2929

30-
<!-- SourceLink -->
30+
<!-- SourceLink: https://github.com/dotnet/sourcelink -->
3131
<PropertyGroup>
3232
<PublishRepositoryUrl>true</PublishRepositoryUrl>
33+
34+
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
3335
<EmbedUntrackedSources>true</EmbedUntrackedSources>
34-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
36+
37+
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
38+
<IncludeSymbols>true</IncludeSymbols>
39+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
3540
</PropertyGroup>
3641

3742
<!-- Strong name signing -->

UnitsNet/UnitsNet.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@
2727
<TargetFramework>netstandard2.0</TargetFramework>
2828
</PropertyGroup>
2929

30-
<!-- SourceLink -->
30+
<!-- SourceLink: https://github.com/dotnet/sourcelink -->
3131
<PropertyGroup>
3232
<PublishRepositoryUrl>true</PublishRepositoryUrl>
33+
34+
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
3335
<EmbedUntrackedSources>true</EmbedUntrackedSources>
34-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
36+
37+
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
38+
<IncludeSymbols>true</IncludeSymbols>
39+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
3540
</PropertyGroup>
3641

3742
<!-- Strong name signing -->

0 commit comments

Comments
 (0)