Skip to content

Is there a way to let MSBuild() find the right toolversion with VS 2022 installed using legacy Cake nuget? #3785

Answered by augustoproiete
janniksam asked this question in Q&A
Discussion options

You must be logged in to vote

@janniksam Upgrading from Cake v1.3 to Cake v2.0 (and use .NET Tool) is probably easier than you think it is, and likely not a rewrite. Check out the steps laid out by @nils-a here: #3744 (comment)

But to answer your question, an easy way to use MSBuild / VS2022 in older versions of Cake is by using vswhere to locate where MSBuild is installed. There's an example by @DrewRhoades here: #3671 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@janniksam
Comment options

Answer selected by janniksam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants