【发布时间】: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)和所有更新。
我唯一能想到的就是从我的客户端机器上复制这些文件夹...
有什么想法吗?
【问题讨论】:
-
安装 Windows SDK 并尝试这个解决方案 - stackoverflow.com/a/19351747/968003
标签: .net visual-studio-2012 msbuild