Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tools/make-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ param(
)

$ErrorActionPreference = 'Stop'

# `-File` callers pass the RID list as one comma-joined string (the CI does
# `-Rid win-x64,linux-x64`), and [string[]] binds that as a single element --
# the loop then hands `dotnet publish -r win-x64,linux-x64` to MSBuild in one
# piece and MSBuild reads the second RID as a bare switch (MSB1006 "Switch:
# linux-x64"). Split every element on commas and trim, so both caller forms
# (an array or a joined string) reach the loop as one RID per element.
$Rid = @($Rid |
ForEach-Object { $_ -split ',' } |
ForEach-Object { $_.Trim() } |
Where-Object { $_ })

$root = Split-Path -Parent $PSScriptRoot
Push-Location $root
try {
Expand Down
Loading