Merge pull request #233 from microsoft/dilan/powershell-dotnet-publish-flags

PowerShell: .NET Publish Flags
This commit is contained in:
dilanbhalla
2025-05-15 12:26:02 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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