Skip to content

Unable to find MSBuild when specifying msbuild-architecture #104

@akunzai

Description

@akunzai

The setup-msbuild v1.2 Unable to find MSBuild when specifying msbuild-architecture

uses: microsoft/setup-msbuild@v1.2
with:
    msbuild-architecture: x64
Run microsoft/setup-msbuild@v1.2
  with:
    msbuild-architecture: x64
  env:
    DOTNET_ROOT: C:\Program Files\dotnet
C:\ProgramData\Chocolatey\bin\vswhere.exe -products * -requires Microsoft.Component.MSBuild -property installationPath -latest
C:\Program Files\Microsoft Visual Studio\2022\Enterprise
Error: Unable to find MSBuild.

see https://github.com/akunzai/GSS.Authentication.CAS/actions/runs/3679955445/jobs/6228417729

But CI workflow will passing after I removed the msbuild-architecture parameter

uses: microsoft/setup-msbuild@v1.2
Run microsoft/setup-msbuild@v1.2
  with:
    msbuild-architecture: x86
  env:
    DOTNET_ROOT: C:\Program Files\dotnet
C:\ProgramData\Chocolatey\bin\vswhere.exe -products * -requires Microsoft.Component.MSBuild -property installationPath -latest
C:\Program Files\Microsoft Visual Studio\2022\Enterprise

see https://github.com/akunzai/GSS.Authentication.CAS/actions/runs/3681629139/jobs/6228509271

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions