TFS生成服务器和COM引用 - 工作的呢? [英] TFS Build server and COM references - does this work?

查看:94
本文介绍了TFS生成服务器和COM引用 - 工作的呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的PC开发者我已经注册了根据dll's和引用它们。 (添加引用 - > COM)
在TFS构建服务器这当然会导致错误,因为引用未注册那里,不会在未来。

On my Developer PC i have registered the according dll´s and referenced them. (Add reference -> COM) On the TFS build server this of course causes errors since the references are not registered there and wont be in the future.

什么是绕过这个的最佳方式?

What is the best way to circumvent this?

推荐答案

OK,答案是比人们想象的更容易。
只要使用tlbimp.exe是创造一个根据intrerop.dll,你在你的项目,并引用此DLL,而不是到COM对象包括

OK, the answer was more easy than one might think. Just use "tlbimp.exe" to create an according intrerop.dll which you include in your project and reference to this dll instead to the COM objects.

由于Visual Studio创建,当你引用一个COM对象自动此DLL您可以保存使用tlbimp.exe是时间。
不过,这并不把它上传到TFS。所以最后我只是用自动创建的DLL和TFS构建服务器是幸福的。

You may save the time using tlbimp.exe because Visual Studio creates this dll automatically when you reference a COM object. But it does not upload it to TFS. So finally I just used the automatically created dll and the TFS build Server was happy.

有人可能会发现在自动创建互操作的dll:ProjectFolder \\ OBJ \\ 86 \\开发

One may find the automatically created Interop dll in: "ProjectFolder\obj\x86\Development"

这篇关于TFS生成服务器和COM引用 - 工作的呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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