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
6.0.0
Operating system
Windows
Operating system architecture
x64
CI Server
No response
What are you seeing?
If only Visual Studio 2026 is installed on the machine, Cake.Tool will fallback to the old MSBuild located in: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe since MSBuild 18 it's not currently supported.
What is expected?
It should use the MSBuild 18 located in: C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\amd64\MSBuild.exe
Steps to Reproduce
Make sure you have only Visual Studio 2026 installed.
Executing task: Restore
Executing: "C:/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe" /v:minimal /p:Configuration="Release" /target:Restore "F:/<omitted>/Source/Project.sln"
Microsoft (R) Build Engine version 4.8.9221.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved
F:\<omitted>\Source\Project.sln.metaproj : error
MSB4057: The target "Restore" does not exist in the project. [F:\<omitted>\Source\Project.sln]
An error occurred when executing task 'Restore'.
Reacted by Peter Palotas, Logan Payton, mejas, Lennon Cork, lstefano71 and Andreas Eriksson
Activity
github-actions commentedon Mar 1, 2026
🎉 This issue has been resolved in version v6.1.0 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀
Bump cake.tool from 4.0.0 to 6.3.0 (#39809)