How to get MSBuild 15 without a full install of Vi

2019-05-12 18:37发布

问题:

"MSBuild is now installed in a folder under each version of Visual Studio." However, I do not want to install a full VS on the server. "MSBuild is now available as part of the .NET Core SDK."

Now that I've installed the .Net Core 2.1 SDK (and the 4.7.2 Framework), what is the path to msbuild.exe?

回答1:

MSBuild.exe 15 was found after installing the VS Build Tools with no additional packages selected in the install interface.

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