简体   繁体   English

如何在tfs 2010中构建多个依赖项项目

[英]How to build multiple dependency projects in tfs 2010

I'm very much new to the TFS. 我对TFS非常陌生。 I have a project smarthub installer. 我有一个项目smarthub安装程序。 To build this i have to build two other project CPMhub.services and CPMhub.website. 为此,我必须构建另外两个项目CPMhub.services和CPMhub.website。 Is there any way that i can right click on smart hub installer and say build so that it will build other two projects and drop into thier repesctive drop location. 我有什么方法可以右键单击smart hub安装程序并说“ build”,以便它将构建其他两个项目并放到其各自的放置位置。

Thank you 谢谢

Bhasker 巴斯克

This is not TFS related, but here's how to do it. 这与TFS不相关,但是这是实现方法。

The simplest way is to create a solution with your Setup project AND the two other projects (CPMhub.services and CPMhub.website). 最简单的方法是使用安装程序项目和其他两个项目(CPMhub.services和CPMhub.website)创建解决方案。

Then right click on the Setup project in the Solution Explorer, then "Add", then "Project Output...", then you'll just have to choose the project and the build configuration. 然后右键单击解决方案资源管理器中的Setup项目,然后依次单击“添加”,“项目输出...”,然后只需选择项目和构建配置即可。

If you want the project output to be dropped directly in a given folder do exactly the same steps but from the File System view of the Setup project by right clicking on the folder that will received the output of your dependent project. 如果要将项目输出直接拖放到给定的文件夹中,请执行完全相同的步骤,但是从Setup项目的File System视图中,右键单击将接收相关项目输出的文件夹。

Just checking. 只是检查。 Is your installer project a WiX project ? 您的安装程序项目是WiX项目吗? Or a Visual Studio Setup Project? 还是Visual Studio安装项目? The latter isn't supported in Team Build 2010 and will be completely removed from Visual Studio in the next version (11). Team Build 2010不支持后者,在下一版本(11)中将完全从Visual Studio中删除后者。

As mentioned by Nockawa, the easiest solution is to create a solution which contains all projects, setup, services and site and just add project references to the (Wix) setup project 如Nockawa所述,最简单的解决方案是创建一个包含所有项目,设置,服务和站点的解决方案,只需将项目引用添加到(Wix)设置项目中

An alternative to creating one solution file is to use the AIT Dependency Manager Extension which can be used to trigger other builds and reference their output directly. 创建一个解决方案文件的另一种方法是使用AIT Dependency Manager Extension ,它可以用于触发其他构建并直接引用其输出。 You will still need to migrate to Wix in order to build your installers from Team Build. 您仍然需要迁移到Wix才能从Team Build构建安装程序。

Note that you might find some solutions to build Visual Studio Setup projects using Team Build. 请注意,您可能会找到一些使用Team Build来构建Visual Studio安装项目的解决方案。 My experience is that these often result in hanging builds, errors and other problems due to the fact that they use devenv.exe /build and devenv.exe will ask questions and pop-up warnings now and then using modal dialogs. 我的经验是,由于它们使用devenv.exe / build并且devenv.exe会先问问题并弹出警告,然后再使用模式对话框,因此,这些操作通常会导致构建,错误和其他问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TFS 2010发布多个项目 - TFS 2010 Publish Multiple Projects 如何强制我的TFS 2010 Build构建要在调试或发布模式下构建的解决方案中的所有项目? - How do I force my TFS 2010 Build to build all projects in the solution to be built in Debug or Release Mode? 在Visual Studio 2010和tfs构建中发布没有显式dll依赖性的Web服务 - Publish webservice with no explicit dll dependency in visual studio 2010 and tfs build 使用TFS 2010进行依赖管理 - Dependency management with TFS 2010 如何清除TFS 2010中的“内置版本”下拉列表 - How to cleanup the “Found in build” dropdown in TFS 2010 使用TFS 2008构建VS 2010项目-TFS服务器应使用哪个版本的VS? - TFS 2008 to Build VS 2010 Projects - what version of VS should go on the TFS Server? 在TFS 2010上运行单元测试项目.Team Build 2010不编译测试DLL - Running Unit Test Projects on TFS 2010. Team Build 2010 Is Not Compiling Test DLLs 如何将 Windows 组作为“读者”添加到 TFS 2010 集合中的所有项目? - How to add Windows group as “Readers” to all projects in TFS 2010 collection? MSTest和TFS Build 2010 - MSTest and TFS Build 2010 如何从其他TFS 2010构建脚本执行一个TFS 2010构建脚本 - How to execute one TFS 2010 build script from other TFS 2010 build script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM