Open Nyconing opened 5 years ago
Current possible workaround is set settings
ToolPath = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\MSBuild\\Current\\Bin\\MSBuild.exe";
Code in the following method should be using Visual Studio setup APIs to find the install path rather than making an educated guess:
I think there is a VSWhere addin already, so that should really be the official way and then fall back to the smart guess.
VSWhere support is already built into Cake https://cakebuild.net/api/Cake.Common.Tools.VSWhere/VSWhereAliases/
Was added 2017 in Cake 0.18.0
.
https://cakebuild.net/blog/2017/03/vswhere-and-visual-studio-2017-support
What You Are Seeing?
Cake.Core.CakeException: MSBuild: Could not locate executable.
What is Expected?
Be able to set
ToolVersion = MSBuildToolVersion.VS2019PreRelease
What version of Cake are you using?
0.34.1
Are you running on a 32 or 64 bit system?
64
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
?
How Did You Get This To Happen? (Steps to Reproduce)
Output Log
GIST LINK - Please create a gist and link to that gist here
OR