From 2e5dfd20817d012b8e0570a034d7033aaa90a773 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Fri, 30 Jul 2021 15:29:37 -0500 Subject: [PATCH] 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 --- ci/PublishAndZip.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/PublishAndZip.ps1 b/ci/PublishAndZip.ps1 index a63f7fb2..e5607ba0 100644 --- a/ci/PublishAndZip.ps1 +++ b/ci/PublishAndZip.ps1 @@ -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