MSBuild is the build tool for Microsoft Visual Studio. Developers use MSBuild to build a Visual Studio project or solution file from a command line, batch file, build tool, or automated script.
A new version of MSBuild.exe is included with each version of the .NET Framework stored in “%WinDir%Microsoft.NETFramework” on your Windows PC. The MSBuild.exe path depends on the .NET Framework version used to build your project. Typically you will want to call the most recent version of MSBuild.exe installed on your computer: