|
|
@ -7,6 +7,14 @@ param (
|
|
|
|
|
|
|
|
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$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 `
|
|
|
|
dotnet publish src\Trash `
|
|
|
|
--output publish\$runtime `
|
|
|
|
--output publish\$runtime `
|
|
|
|
--configuration Release `
|
|
|
|
--configuration Release `
|
|
|
@ -15,6 +23,7 @@ dotnet publish src\Trash `
|
|
|
|
-p:PublishSingleFile=true `
|
|
|
|
-p:PublishSingleFile=true `
|
|
|
|
-p:PublishTrimmed=true `
|
|
|
|
-p:PublishTrimmed=true `
|
|
|
|
-p:IncludeNativeLibrariesForSelfExtract=true `
|
|
|
|
-p:IncludeNativeLibrariesForSelfExtract=true `
|
|
|
|
|
|
|
|
-p:IncludeSymbolsInSingleFile=true `
|
|
|
|
-p:PublishReadyToRun=true
|
|
|
|
-p:PublishReadyToRun=true
|
|
|
|
|
|
|
|
|
|
|
|
New-Item -ItemType Directory -Force -Path publish\zip
|
|
|
|
New-Item -ItemType Directory -Force -Path publish\zip
|
|
|
|