Unable to find msbuild.
See original GitHub issueI am trying to run this action on a self-hosted runner.
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.0
with:
vs-version: 15.0
Here’s the output:
“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -version 15 -requires Microsoft.Component.MSBuild -find MSBuild**\Bin\MSBuild.exe ##[error]Unable to find msbuild.
I tried doing the following, but it says it expects string, number, or boolean, not an array.
vs-version:
[15.0,15.9]
I have Visual Studio Build tools installed on this server.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
##[warning]Unable to find MSBuild: Version = 15.0
Hi,. I have VS2017 installed on my OnPremises BuildAgent for TFS 2017 server and I have selected Visual Studio 2017 in my build...
Read more >visual studio 2017 - MSBuild.exe not found, cmd.exe
I recently installed Visual Studio 2017, shouldn't MSBuild.exe come with it? One of bash scripts is calling it, but can't find anything.
Read more >Where to Find MSBuild.exe - C# 411
Developers use MSBuild to build a Visual Studio project or solution file from a command line, batch file, build tool, or automated script....
Read more >Walkthrough: Using MSBuild - Microsoft Learn
In the Visual Studio installer, navigate to Individual Components, and locate the checkbox for MSBuild. It is automatically selected when you ...
Read more >Locating MSBuild on a machine - Meziantou's blog
MSBuild is part of the Visual Studio. If you want to write a CI/CD pipeline for your project, you will need to find...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m too stuck with the same issue: This is from my GitHub-actions yml file: (hosted on aws)
resulting in the error in the step:
I did add
MSBuild
location in the system path variable as well.What am I missing? Thanks for the consideration
I’ve come across the same issue, see: https://github.com/microsoft/setup-msbuild/issues/20#issuecomment-845835155