You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched issues to ensure it has not already been reported
Cake runner
Cake .NET Tool
Cake version
3.1
Operating system
Windows
Operating system architecture
X64
CI Server
TeamCity / Azure DevOps Server (On Prem)
What are you seeing?
Running the Cake Alias "MsBuild" on a machine where only BuildTools are installed can fail
`MSBuild: Could not locate executable.
at Cake.Core.Tooling.Tool`1.RunProcess(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings) in C:\projects\cake\src\Cake.Core\Tooling\Tool.cs:line 164
at Cake.Core.Tooling.Tool`1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action`1 postAction) in C:\projects\cake\src\Cake.Core\Tooling\Tool.cs:line 81
at Cake.Core.Tooling.Tool`1.Run(TSettings settings, ProcessArgumentBuilder arguments) in C:\projects\cake\src\Cake.Core\Tooling\Tool.cs:line 60
at Cake.Common.Tools.MSBuild.MSBuildRunner.Run(FilePath solution, MSBuildSettings settings) in C:\projects\cake\src\Cake.Common\Tools\MSBuild\MSBuildRunner.cs:line 48
at Cake.Common.Tools.MSBuild.MSBuildAliases.MSBuild(ICakeContext context, FilePath solution, MSBuildSettings settings) in C:\projects\cake\src\Cake.Common\Tools\MSBuild\MSBuildAliases.cs:line 102
at Submission#0.MSBuild(FilePath solution, MSBuildSettings settings)
Prerequisites
Cake runner
Cake .NET Tool
Cake version
3.1
Operating system
Windows
Operating system architecture
X64
CI Server
TeamCity / Azure DevOps Server (On Prem)
What are you seeing?
Running the Cake Alias "MsBuild" on a machine where only BuildTools are installed can fail
In this PR https://github.com/cake-build/cake/pull/3795/files this was changed to "Program Files (x86)"
But it is also possible that the BuildTools are installed on "Program Files" Directory (image)
This is now the new behavior
https://learn.microsoft.com/en-us/visualstudio/msbuild/whats-new-msbuild-17-0?view=vs-2022
What is expected?
Detection of the correct directory
Steps to Reproduce
Windows Server 2022
Output log
No response
The text was updated successfully, but these errors were encountered: