[Scripts] Update build.ps1

This commit is contained in:
Connection Refused
2021-10-19 02:50:05 +08:00
parent cc69dff5e1
commit 823ecb17cd

View File

@@ -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'