diff --git a/powershell/build-linux64.ps1 b/powershell/build-linux64.ps1 index 2bfa2c9880c..1f51afbfb40 100644 --- a/powershell/build-linux64.ps1 +++ b/powershell/build-linux64.ps1 @@ -3,7 +3,7 @@ param ( ) $toolsLinux64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "linux64" -dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsLinux64Folder -r linux-x64 +dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsLinux64Folder -r linux-x64 -c Release --self-contained if ($LASTEXITCODE -ne 0) { Write-Host "Build failed" exit 1 diff --git a/powershell/build-osx64.ps1 b/powershell/build-osx64.ps1 index 55877ceef6e..579b60295bb 100644 --- a/powershell/build-osx64.ps1 +++ b/powershell/build-osx64.ps1 @@ -3,7 +3,7 @@ param ( ) $toolsOsx64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "osx64" -dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsOsx64Folder -r osx-x64 +dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsOsx64Folder -r osx-x64 -c Release --self-contained if ($LASTEXITCODE -ne 0) { Write-Host "Build failed" exit 1 diff --git a/powershell/build-win64.ps1 b/powershell/build-win64.ps1 index 26268167f4b..43e5e71887e 100644 --- a/powershell/build-win64.ps1 +++ b/powershell/build-win64.ps1 @@ -3,7 +3,7 @@ param ( ) $toolsWin64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "win64" -dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsWin64Folder -r win-x64 +dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsWin64Folder -r win-x64 -c Release --self-contained if ($LASTEXITCODE -ne 0) { Write-Host "Build failed" exit 1