【问题标题】:how to install visual studio 2012 on a windows server 2008?如何在 Windows Server 2008 上安装 Visual Studio 2012?
【发布时间】:2014-10-01 09:56:38
【问题描述】:

我的构建机器出现以下错误

C:\Builds\1\Test MVC 4 Application\Build Development - MVC 4 Test App\Sources\Project\TestMVC4\MvcApplication1\MvcApplication1\MvcApplication1.csproj(300,3): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

我了解错误,并且知道问题是我的 Windows 2008 服务器只有 Visual Studio 2010...当我尝试安装 Web Tools 2012.2 甚至 Visual Studio 2012 时,它说服务器需要升级或更新到最新的服务包。我已将服务器修补到 SP2(最新 sp)和所有更新。

我唯一能想到的就是从我的客户端机器上复制这些文件夹...

有什么想法吗?

【问题讨论】:

标签: .net visual-studio-2012 msbuild


【解决方案1】:

不需要在构建服务器上安装 Visual Studio。查看以下链接

Build ASP.NET 4.5 without Visual Studio on Build Server

如果您甚至不想手动将它们复制到您的服务器,您也可以尝试以下 nuget 包,它应该可以达到相同的结果,但我还没有尝试过

https://www.nuget.org/packages/MSBuild.Microsoft.VisualStudio.Web.targets/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-07
    相关资源
    最近更新 更多