gpt4 book ai didi

visual-studio-2012 - MSBuild.exe 和 dotnet 4.5

转载 作者:行者123 更新时间:2023-12-04 23:41:48 25 4
gpt4 key购买 nike

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

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

  • Microsoft Visual Studio 2012(版本 11.0.60315.01 更新 2)
  • Microsoft .NET 框架 4.5.2
  • Microsoft .NET Framework 4.5 SDK
  • Microsoft .NET Framework 4.5 多目标包
  • Microsoft .NET Framework 4 多目标包

  • 在“VS2012 x86 Native Tools Command Prompt”中运行 msbuild 它似乎运行位于 C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 的 dotnet 4.0 版本的 msbuild

    没有名为 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\12.0\bin On 64-bit machines the 32-bit tools will be under: C:\Program Files (x86)\MSBuild\12.0\bin and the 64-bit tools under: C:\Program Files (x86)\MSBuild\12.0\bin\amd64



    您可以通过在 Visual Studio 的开发人员命令提示符中键入来查找 MSBuild 位置:
    where msbuild

    应该输出旧版 (4.0) 和最新的二进制 (12.0,14.0+) 位置:
    C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

    在 VS 2012 中,您可以使用 MSBuild 4.0。

    关于visual-studio-2012 - MSBuild.exe 和 dotnet 4.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35179614/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com