Skip to content

Commit ef72740

Browse files
committed
Add sourcelink to nuget package
1 parent 532fd1b commit ef72740

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Serilog.AspNetCore/Serilog.AspNetCore.csproj

+12
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
<RootNamespace>Serilog</RootNamespace>
2121
</PropertyGroup>
2222

23+
<PropertyGroup>
24+
<IncludeSymbols>true</IncludeSymbols>
25+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
26+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
27+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
28+
<IsPackable>true</IsPackable>
29+
</PropertyGroup>
30+
2331
<ItemGroup>
2432
<None Include="..\..\assets\icon.png" Pack="true" Visible="false" PackagePath="" />
2533
</ItemGroup>
@@ -36,6 +44,10 @@
3644
<PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" />
3745
<PackageReference Include="Serilog.Settings.Configuration" Version="3.3.0" />
3846
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" />
47+
<PackageReference Include="Microsoft.SourceLink.Github" Version="1.1.1">
48+
<PrivateAssets>all</PrivateAssets>
49+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
50+
</PackageReference>
3951
</ItemGroup>
4052

4153
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">

0 commit comments

Comments
 (0)