Skip to content

Commit 3d45ace

Browse files
committed
Publish a .snupkg
1 parent cf57f9f commit 3d45ace

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ foreach ($src in ls src/*) {
2020

2121
echo "build: Packaging project in $src"
2222

23-
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix
23+
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix -p:ContinuousIntegrationBuild=true
2424
if($LASTEXITCODE -ne 0) { exit 1 }
2525

2626
Pop-Location

appveyor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build_script:
77
test: off
88
artifacts:
99
- path: artifacts/Serilog.*.nupkg
10+
- path: artifacts/Serilog.*.snupkg
1011
deploy:
1112
- provider: NuGet
1213
api_key:
@@ -17,7 +18,9 @@ deploy:
1718
- provider: GitHub
1819
auth_token:
1920
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
20-
artifact: /Serilog.*\.nupkg/
21+
artifacts:
22+
/Serilog.*\.nupkg/
23+
/Serilog.*\.snupkg/
2124
tag: v$(appveyor_build_version)
2225
on:
2326
branch: master

src/Serilog.Enrichers.Thread/Serilog.Enrichers.Thread.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
<PackageProjectUrl>http://serilog.net</PackageProjectUrl>
2424
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
2525
<PackageReadmeFile>README.md</PackageReadmeFile>
26+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
27+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
28+
<IncludeSymbols>true</IncludeSymbols>
29+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2630
<LangVersion>latest</LangVersion>
2731
<Nullable>enable</Nullable>
2832
</PropertyGroup>

0 commit comments

Comments
 (0)