-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
VS2022: msbuild can not be located, only Build Tools are installed #3671
Comments
🎉 This issue has been resolved in version v2.0.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
It sure would have been nice to see this fix in a Cake 1.3.1 release. My Cake 1.3.0 build doesn't recognize the VS2022 Build Tools on my build server, and in order to fix it, I have to rework all my build script to be compatible with Cake.Tools 2.0.0, which appears to be non-trivial (I'm currently using the full framework runner). So I'm basically stuck without investing significant effort. |
In case someone comes behind me looking for a work-around, I basically used a method as suggested here: #3476 I got the MSBuild path using VSWhere:
And then when compiling for VS2022, I override the ToolPath in my MSBuildSettings:
|
As discussed in #3476,
VS2022 BuildTools should be searched in
Program Files (x86)
, too.The text was updated successfully, but these errors were encountered: