CI服务器上的WCF编译错误:找不到Microsoft.VisualStudio.ServiceModel.targets [英] WCF compilation error on CI server: Microsoft.VisualStudio.ServiceModel.targets not found

查看:915
本文介绍了CI服务器上的WCF编译错误:找不到Microsoft.VisualStudio.ServiceModel.targets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的CI服务器上收到此错误:

I am getting this error on my CI server:


错误MSB4019:导入的项目C:\Program Files )\MSBuild\Microsoft\VisualStudio\WCF\Microsoft.VisualStudio.ServiceModel.targets

error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\WCF\Microsoft.VisualStudio.ServiceModel.targets" was not found

似乎我的WCF服务库项目引用了该文件,但是 Program Files\MSBuild\Microsoft 上的VisualStudio文件夹不包含WCF文件夹。

It seems my WCF service library project references that file, but the VisualStudio folder on Program Files\MSBuild\Microsoft doesn't contain a WCF folder.

我想我需要在服务器上安装一些东西。

I guess I need to install something on the server.

我需要安装什么?

推荐答案

这毁了我的早晨,但让我们不要让它毁了别人的。我在其他地方找不到此信息。您需要使用VS Pro 2012从开发机器复制几个文件。

Well this ruined my morning, but let's not allow it to ruin anyone else's. I couldn't find this information anywhere else. You need to copy a few files from a development machine with VS Pro 2012.

由于aphexddb提到,您需要从 C: \Program Files(x86)\MSBuild\Microsoft\VisualStudio\WCF 到CI服务器上的相同位置。

As aphexddb mentions, you need to copy some targets from C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\WCF to the same location on your CI server.

然后引用一个名为 Microsoft.VisualStudio.ServiceModel.Core 的程序集。您可以在GAC或IDE目录 C:\Program Files(x86)\ Microsoft Visual Studio 11.0 \Common7 \IDE 中找到此程序集。

This then references an assembly called Microsoft.VisualStudio.ServiceModel.Core. You can find this assembly in either the GAC or in the IDE directory at C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE.

将此文件复制到CI服务器并执行 gacutil.exe -i Microsoft.VisualStudio.ServiceModel.Core.dll

Copy this to your CI server and execute gacutil.exe -i Microsoft.VisualStudio.ServiceModel.Core.dll

这对我来说足够了。

这不是我第一次发现目标从我的VS快速安装在我的CI服务器。我不禁感到有某种包装,我可以从某个地方填充所有这一切。有谁知道这样的事情吗?如果没有,或许我们应该创建一个。

This isn't the first time I found targets missing from my VS express install in my CI server. I can't help but feel that there is some sort of package I can download from somewhere that fills all this in. Does anyone know of such a thing? If not, perhaps we should create one.

这篇关于CI服务器上的WCF编译错误:找不到Microsoft.VisualStudio.ServiceModel.targets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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