Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting vs-version: [17.0, 18.0) results in Error: Unable to find MSBuild. #71

Closed
CartBlanche opened this issue Dec 3, 2021 · 3 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@CartBlanche
Copy link

As per subject, when I run....

Run microsoft/[email protected]
  with:
    vs-version: [17.0, 18.0)
    msbuild-architecture: x64
  env:
    DOTNET_ROOT: C:\Users\runneradmin\AppData\Local\Microsoft\dotnet
    NUGET: C:\hostedtoolcache\windows\nuget.exe\5.11.0\x64/nuget.exe

and following error

C:\ProgramData\Chocolatey\bin\vswhere.exe -products * -requires Microsoft.Component.MSBuild -property installationPath -latest -version "[17.0, 18.0)"
Error: Unable to find MSBuild.

When is VS2022 likely to be supported?

@timheuer timheuer added the invalid This doesn't seem right label Dec 3, 2021
@timheuer timheuer self-assigned this Dec 3, 2021
@timheuer
Copy link
Member

timheuer commented Dec 3, 2021

@CartBlanche what agent are you using? you need to use windows-2022 if using the hosted agents, see actions/runner-images#4488 for more information. And also specifically this comment: actions/runner-images#4488 (comment) on when windows-latest may be updated to actually be latest :-)

@CartBlanche
Copy link
Author

Using windows-2022 fixed my issue. Closing!

@timheuer
Copy link
Member

timheuer commented Dec 3, 2021

Great to hear! Also FYI to simplify things since you are using hosted agents, you can eliminate the vs-version input argument -- hosted agents only have one version installed so you'll get the version that's on there. That parameter is mostly for self-hosted agents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants