Skip to content

Commit 18f9194

Browse files
authored
Merge pull request #306 from ckadluba/sourcelink
Enabled Sourcelink in NuGet package
2 parents ee54cad + bb46fd7 commit 18f9194

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

appveyor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build_script:
99
test: off
1010
artifacts:
1111
- path: artifacts/Serilog.*.nupkg
12+
- path: artifacts/Serilog.*.snupkg
1213
deploy:
1314
- provider: NuGet
1415
api_key:
@@ -18,7 +19,9 @@ deploy:
1819
- provider: GitHub
1920
auth_token:
2021
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
21-
artifact: /Serilog.*\.nupkg/
22+
artifacts:
23+
/Serilog.*\.nupkg/
24+
/Serilog.*\.snupkg/
2225
tag: v$(appveyor_build_version)
2326
on:
2427
branch: master

src/Serilog.Sinks.MSSqlServer/Serilog.Sinks.MSSqlServer.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1919
<RepositoryUrl>https://github.com/serilog/serilog-sinks-mssqlserver</RepositoryUrl>
2020
<RepositoryType>git</RepositoryType>
21+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
22+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
23+
<IncludeSymbols>true</IncludeSymbols>
24+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2125
<RuntimeIdentifiers>win</RuntimeIdentifiers>
2226
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
2327
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
@@ -26,6 +30,7 @@
2630

2731
<ItemGroup>
2832
<!-- Whenever these are updated, also update versions in packages.config for net452 -->
33+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
2934
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
3035
<PrivateAssets>all</PrivateAssets>
3136
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)