MSBuild.exe 和点网 4.5

MSBuild.exe and dotnet 4.5

dotnet framework 4.5 是否包含 msbuild.exe 的更新版本?

我们正在使用 Windows 7 Enterprise SP1(64 位)和以下已安装的程序;

运行 "VS2012 x86 Native Tools Command Prompt" 中的 msbuild 它似乎 运行 位于 C:\Windows\Microsoft.NET\Framework\v4.0.[ 的 dotnet 4.0 版本的 msbuild =36=].exe

没有名为 C:\Windows\Microsoft.NET\Framework\v4.5...

的文件夹

dotnet framework 4.5 在哪里安装它的文件?

从 VS 2013 开始,MSBuild 是 Visual Studio 的一部分,而不是 .NET Framework。

来自Visual Studio博客的“MSBuild is now part of Visual Studio!”:

We made a number of exciting changes to MSBuild for Visual Studio 2013, including rethinking the fundamental relationship between MSBuild, Visual Studio, and the .NET Framework. MSBuild has shipped as a component of the .NET framework since it was first introduced in 2005 with .NET 2.0, despite the fact that it is, first and foremost, a development tool leveraged primarily by Visual Studio developers. Starting with Visual Studio 2013, the 2013 version of MSBuild will ship as a part of Visual Studio instead of the .NET Framework. This transition allows us to more rapidly evolve MSBuild.

和:

On 32-bit machines they can be found in: C:\Program Files\MSBuild.0\bin On 64-bit machines the 32-bit tools will be under: C:\Program Files (x86)\MSBuild.0\bin and the 64-bit tools under: C:\Program Files (x86)\MSBuild.0\bin\amd64

您可以通过在开发人员命令提示符中键入 Visual Studio:

来查找 MSBuild 位置
where msbuild

应该同时输出旧版 (4.0) 和最新的二进制文件 (12.0,14.0+) 位置:

C:\Program Files (x86)\MSBuild.0\Bin\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

对于 VS 2012,您可以使用 MSBuild 4.0。