MSBuild 15 missing after installation

Viewed 7146

I have recently upgraded to VS2017 and building with TeamCity. I have a new project that I need to build using TeamCity. I tried to install MS Build on the CI server from the following link https://www.visualstudio.com/downloads/ it said that it has successfully installed it. Restarted the CI server trying to build the project and still cannot find the new Build tools.

I checked under C:\Program Files (x86)\MSBuild\15.0\ but I dont see the MSBuild.exe

2 Answers

MSBuild 15 missing after installation

If you want use MSBuild without install Visual Studio, you should download and install vs_BuildTools.exe from below link:

https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15#

After installation complete, you will find the MSBuild.exe under the path:

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin

enter image description here

For more detail information, you can refer to: How can I install the VS2017 version of msbuild on a build server without installing the IDE?

MSBuild is now local to Visual Studio 2017 and multiple versions can be installed side-by-side (e.g. build tools, previews, community + enterprise, etc.)

So a path to msbuild.exe could look like:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin
Related