Commit 1afccdf
committed
ci: install the Windows .NET SDK per architecture
The UseDotNet@2 task has no architecture input and mis-detects
Windows-on-Arm agents as win-x86, installing the 32-bit SDK. Publishing
win-arm64 from an x86 host is then treated as Native AOT
cross-compilation (only x64->arm64 is supported), so the ILCompiler step
fails demanding a runtime.win-arm64.Microsoft.DotNet.ILCompiler package.
The x86/x64 legs pass because they run on Intel agents, where the SDK
targets win-x64 natively and win-x86 via bundled cross-support.
Acquire the SDK with the official dotnet-install script instead, keyed
on the matrix leg's poolArch, so every Windows agent gets a host SDK
matching its architecture and publishes natively. The macOS and Linux
legs keep UseDotNet@2; the mis-detection is specific to Windows on Arm.
Assisted-by: Claude Opus 4.8
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>1 parent 96e431d commit 1afccdf
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| |||
0 commit comments