Microsoft.WebApplication.targets没有被发现,在构建服务器。你对此有何解决方案? [英] Microsoft.WebApplication.targets was not found, on the build server. What's your solution?

查看:1096
本文介绍了Microsoft.WebApplication.targets没有被发现,在构建服务器。你对此有何解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图建立我的项目在生成服务器上给了我下面的错误:

Trying to build my project on the build server gives me the following error:

Microsoft (R) Build Engine Version 4.0.30319.1
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.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.
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.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.

我在几个月前解决了这个问题,在构建服务器上安装Visual Studio 2010的。但现在我安装从头开始一个新的服务器,我想知道有没有更好的解决办法来解决这个问题。

I solved this problem a few months ago, with installing Visual Studio 2010 on the Build Server. But now I'm setup a new server from scratch, and I want to know if there any better solution to solve this issue.

推荐答案

要回答这个问题的标题(但不是你要输出的问题):

复制从您的开发机器下面的文件夹来构建服务器修复这一点,如果它只是Web应用程序

Copying the following folder from your dev machine to your build server fixes this if it's just web applications

C:\ Program Files文件(x86)的\的MSBuild \微软\ VisualStudio中\ 10.0 \ web应用

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications

根据你如何生成中断删除86。如果您有其他的项目类型,你可能需要复制整个MSBuild的文件夹。

Remove x86 according to how your build breaks. If you have other project types you will probably need to copy the entire msbuild folder.

这篇关于Microsoft.WebApplication.targets没有被发现,在构建服务器。你对此有何解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆