Prefer native MSBuild on ARM64 runners

Select the installed ARM64 executable when available, and fall back to x64 or x86 on ARM64 runners. Preserve explicit architecture choices and document the default selection.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Chet HuskandCopilot App committed 2026-11-13 12:44:32 -06:00
1 parent ccfa82c934
commit 50a58bfea2
6 files changed
+411 -155

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ inputs:
description: "Enable searching for pre-release versions of Visual Studio/MSBuild"
required: false
msbuild-architecture:
description: 'The preferred processor architecture of MSBuild. Can be either "x86", "x64", or "arm64". If left unspecified, the action auto-detects the best option: "x64" on 64-bit machines, otherwise "x86".'
description: 'The MSBuild architecture: "x86", "x64", or "arm64". If unspecified with Visual Studio 17 or later, ARM64 runners use arm64 if installed, then x64 if installed, otherwise x86; x64 runners use x64. All other cases use x86.'
required: false
outputs:
msbuildPath: