Skip to content

[BUG] MSBuild.exe (Visual Studio 2019) on Windows-latest is not in system PATH #25540

Answered by weide-zhou
ldorau asked this question in Actions
Discussion options

You must be logged in to vote

Thank you for being here! This error is due to msbuild is not added to the path correctly. On Github runner, msbuild is not added into PATH by default.

Add solution for other guys:

  1. add the env path, code as below:

    echo “::add-path::C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin”

  2. or use action ‘warrenbuckley/Setup-MSBuild’ before msbuild command.

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants