fix: include symbols in published release

This is only required because LibGit2Sharp bundles PDB files in its
nuget package. See the following github issues for more info.

- https://github.com/dotnet/runtime/issues/3807
- https://github.com/libgit2/libgit2sharp.nativebinaries/issues/111
pull/47/head
Robert Dailey 3 years ago
parent ba0633411a
commit 2e5dfd2081

@ -7,6 +7,14 @@ param (
$ErrorActionPreference = "Stop"
# Note for `IncludeSymbolsInSingleFile`:
#
# This is only required because LibGit2Sharp bundles PDB files in its nuget package.
# See the following github issues for more info:
#
# - https://github.com/dotnet/runtime/issues/3807
# - https://github.com/libgit2/libgit2sharp.nativebinaries/issues/111
dotnet publish src\Trash `
--output publish\$runtime `
--configuration Release `
@ -15,6 +23,7 @@ dotnet publish src\Trash `
-p:PublishSingleFile=true `
-p:PublishTrimmed=true `
-p:IncludeNativeLibrariesForSelfExtract=true `
-p:IncludeSymbolsInSingleFile=true `
-p:PublishReadyToRun=true
New-Item -ItemType Directory -Force -Path publish\zip

Loading…
Cancel
Save