From 823ecb17cde5a4a716fee5af32bf5eb9601020c9 Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Tue, 19 Oct 2021 02:50:05 +0800 Subject: [PATCH] [Scripts] Update build.ps1 --- build.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.ps1 b/build.ps1 index 452e2179..3e7ecba5 100644 --- a/build.ps1 +++ b/build.ps1 @@ -15,11 +15,11 @@ param ( [Parameter()] [bool] - $PublishReadyToRun = $True, + $PublishSingleFile = $True, [Parameter()] [bool] - $PublishSingleFile = $True + $PublishReadyToRun = $True ) Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent) @@ -55,8 +55,9 @@ if ( -Not ( Test-Path ".\Netch\bin\$Configuration" ) ) { -p:Platform='x64' ` -p:SelfContained=$SelfContained ` -p:PublishTrimmed=$SelfContained ` - -p:PublishReadyToRun=$PublishReadyToRun ` -p:PublishSingleFile=$PublishSingleFile ` + -p:PublishReadyToRun=$PublishReadyToRun ` + -p:PublishReadyToRunShowWarnings=$PublishReadyToRun ` -p:IncludeNativeLibrariesForSelfExtract=$SelfContained ` -o ".\Netch\bin\$Configuration" ` '.\Netch\Netch.csproj'