带有 TFS 构建服务器的第三方 DLL [英] Third-party DLLs with TFS build server

查看:34
本文介绍了带有 TFS 构建服务器的第三方 DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是第一次在我的 Team Foundation Server 中设置自动构建(TFS)/Visual Studio 2010 环境.

I'm just setting up an automated build for the first time in my Team Foundation Server (TFS)/Visual Studio 2010 enviroment.

这是一个 WPF 4 应用程序,它使用 Entprise 库,并且还有一些组件内置 Expression Blend.

It's a WPF 4 application that uses the Entprise library and has also some components that have been built in Expression Blend.

应用程序在 Visual Studio 中构建正常.但是,它无法使用构建服务器构建.

The application builds OK inside Visual Studio. However, it fails to build using the build server.

例如:

未找到导入的项目C:\Program Files (x86)\MSBuild\Microsoft\Expression\Blend.NETFramework\v4.0\Microsoft.Expression.Blend.WPF.targets".确认 声明中的路径是正确的,并且该文件存在于磁盘上.

The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Expression\Blend.NETFramework\v4.0\Microsoft.Expression.Blend.WPF.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

我是否必须在构建服务器上安装第三方 DLL?或者将 DLL 签入 TFS 是否足够?

Do I have to install third-party DLLs on the build server? Or is having the DLLs checked into TFS enough?

推荐答案

我总是创建一个第三方 DLLs 文件夹作为我的解决方案的一部分(在名为 Libs 的解决方案根目录下)并有项目参考他们从那个文件夹.这样,构建将无需额外的努力,在本地在新机器上和构建服务器上进行.

I always create a third-party DLLs folder as part of my solution (at the solution root called Libs) and have projects reference them from that folder. That way, builds will work with no extra effort, locally on a get latest on a new machine and on the build server.

此外,由于第三方 DLL 是您的 SCC 主干的一部分,因此您可以在需要时在分支中对其进行版本控制.

Also, because third party DLLs are part of your SCC trunk, when required you can version them in branches.

这篇关于带有 TFS 构建服务器的第三方 DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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