Skip to content

Commit 60ca496

Browse files
authored
Merge pull request #233 from microsoft/dilan/powershell-dotnet-publish-flags
PowerShell: .NET Publish Flags
2 parents dd965dd + 5127ace commit 60ca496

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

powershell/build-linux64.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ param (
33
)
44

55
$toolsLinux64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "linux64"
6-
dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsLinux64Folder -r linux-x64
6+
dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsLinux64Folder -r linux-x64 -c Release --self-contained
77
if ($LASTEXITCODE -ne 0) {
88
Write-Host "Build failed"
99
exit 1

powershell/build-osx64.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ param (
33
)
44

55
$toolsOsx64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "osx64"
6-
dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsOsx64Folder -r osx-x64
6+
dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsOsx64Folder -r osx-x64 -c Release --self-contained
77
if ($LASTEXITCODE -ne 0) {
88
Write-Host "Build failed"
99
exit 1

powershell/build-win64.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ param (
33
)
44

55
$toolsWin64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "win64"
6-
dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsWin64Folder -r win-x64
6+
dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsWin64Folder -r win-x64 -c Release --self-contained
77
if ($LASTEXITCODE -ne 0) {
88
Write-Host "Build failed"
99
exit 1

0 commit comments

Comments
 (0)