在构建服务器上未找到 Microsoft.WebApplication.targets.你的解决方案是什么? [英] Microsoft.WebApplication.targets was not found, on the build server. What's your solution?

查看:71
本文介绍了在构建服务器上未找到 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)MSBuildMicrosoftVisualStudiov10.0TeamDataMicrosoft.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)MSBuildMicrosoftVisualStudiov10.0WebApplicationsMicrosoft.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)MSBuildMicrosoftVisualStudiov10.0WebApplicationsMicrosoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

我在几个月前解决了这个问题,在 Build Server 上安装了 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)MSBuildMicrosoftVisualStudiov10.0WebApplications

C:Program Files (x86)MSBuildMicrosoftVisualStudiov10.0WebApplications

根据您的构建中断方式删除 x86.如果您有其他项目类型,您可能需要复制整个 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天全站免登陆