How to install MSBuild 15.3 without Visual Studio?

Viewed 19541

Is there a way to install version 15.3 of MSBuild on the build server without installing Visual Studio 2017?

I tried to install 'Build Tools for Visual Studio 2017' from https://www.visualstudio.com/downloads/ per https://stackoverflow.com/a/42697374/ however I ended up with version 15.1:

msbuild /version
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.

15.1.1012.6693

We need version 15.3 to build Azure Functions project.

4 Answers

go to the microsoft website and download vs_buildtools (https://visualstudio.microsoft.com/downloads/) after the download access the folder through the CMD prompt and start the installation through the commands below:

vs_buildtools__1882505178.1548260078.exe --layout c:\VS_BuildTools --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --lang en-US --includingOptional

  • "vs_buildtools__1882505178.1548260078.exe" should be replaced with the version you downloaded to the site.
  • "c:\VS_BuildTools" path where the installer should be.
Related