Skip to content

Use x64 version of desktop msbuild if process arch is amd64 #16494

Closed

Description

@ViktorHofer

Follow-up to #7531

I looked at a few binlogs from a desktop msbuild invocation today and was surprised that we still launch the x86 version of msbuild.exe by default.

Looking at

arcade/eng/common/tools.ps1

Lines 469 to 473 in b7be18a

$local:Prefer64bit = if (Get-Member -InputObject $vsRequirements -Name 'Prefer64bit') { $vsRequirements.Prefer64bit } else { $false }
if ($local:Prefer64bit -and (Test-Path(Join-Path $local:BinFolder "amd64"))) {
$global:_MSBuildExe = Join-Path $local:BinFolder "amd64\msbuild.exe"
} else {
$global:_MSBuildExe = Join-Path $local:BinFolder "msbuild.exe"
, the opt-in never got switched to a default.

Activity

  1. ViktorHofer commented on Jun 18, 2026

    @ViktorHofer
    MemberAuthor

    Not sure if there's also an arm64 subfolder? That should probably be used if the arch is arm64. Maybe there's a more robust system to detect the msbuild.exe to use?

  2. ViktorHofer commented on Nov 9, 2026

    @ViktorHofer
    MemberAuthor

    already done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions