Skip to content

MSBuild: Could not locate executable #3476

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

You must be logged in to vote

@zgdump Cake expects MSBuild to be in one of the default locations based on the version you specify and the different editions that exist. In your case you're specifying VS2019 so it would search the following locations:

%ProgramFiles(x86)%/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe
%ProgramFiles(x86)%/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe
%ProgramFiles(x86)%/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
%ProgramFiles(x86)%/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe
%ProgramFiles(x86)%/Microsoft Visual Studio/2019/Professional/MSBuild/16.0/Bin/MSBuild.exe

It seems you ha…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

@vklachkov

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by vklachkov
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@devlead
Comment options

@nils-a
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #3475 on September 29, 2021 14:48.