简体   繁体   English

如何在Team Build 2015中配置多个项目

[英]How to configure multiple project in Team Build 2015

How to configure multiple project in Team Build 2015 (using the new task based workflow, not the old XAML builds). 如何在Team Build 2015中配置多个项目(使用基于任务的新工作流,而不是旧的XAML构建)。

Right now I see only one solution can be configured for Visual Studio build task. 现在我看到只能为Visual Studio构建任务配置一个解决方案。

You can easily add more than one build task that explicitly calls a single solution. 您可以轻松添加多个显式调用单个解决方案的构建任务。 That will also allow you to control the order that they get built. 这也将允许您控制它们构建的顺序。

在此输入图像描述

Just select "Visual Studio Build" from the sea list. 只需从海名单中选择“Visual Studio Build”即可。 This works in Visual Studio Online and TFS 2015. 这适用于Visual Studio Online和TFS 2015。

As others have mentioned there are multiple ways to accomplish this: 正如其他人提到的,有多种方法可以实现这一目标:

  1. Add multiple "Build with MsBuild" or "Build with Visual Studio" tasks. 添加多个“使用MsBuild构建”或“使用Visual Studio构建”任务。 Let each task build a specific solution by entering the full path to the solution/ 通过输入解决方案的完整路径,让每个任务构建一个特定的解决方案
  2. Use the wildcard solution to find all solutions **/*.sln will build all solutions in the workspace. 使用通配符解决方案查找所有解决方案**/*.sln将在工作区中构建所有解决方案。

    • You can use a workspace cloaking rule if you're using TFVC for source control to exclude one of your solution files from the workspace, that way it won't be downloaded from sourcecontrol and won't be built. 如果您使用TFVC进行源代码管理以从工作区中排除某个解决方案文件,则可以使用工作区隐藏规则,这样就不会从sourcecontrol下载并且不会构建它。
  3. Use ; 使用; to combine multiple search patterns: **/abc.sln;**/xyz.sln 组合多种搜索模式: **/abc.sln;**/xyz.sln

  4. Create a custom msbuild file (eg buildprojects.proj ) which in turns invokes the msbuild to build each solution you wan to build. 创建一个自定义的msbuild文件(例如buildprojects.proj ),该文件又调用msbuild来构建您要构建的每个解决方案。 Configure the task in the workflow to call teh .proj file instead of the specific solutions. 在工作流中配置任务以调用teh .proj文件而不是特定的解决方案。

You can enter a pattern. 您可以输入模式。 The default for the Visual Studio template is **/*.sln, which will recursively match on all .sln files in the repository/workspace. Visual Studio模板的默认值为** / * .sln,它将在存储库/工作空间中的所有.sln文件上递归匹配。

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

相关问题 使用Team Foundation Build 2015部署到多个环境 - Deploying to Multiple Environments with Team Foundation Build 2015 无法在TFS 2015中为每个团队项目创建多个存储库 - Unable to create multiple repos per team project in TFS 2015 如何在 TFS 2015 中将构建结果发布到团队房间? - How to post build result to team room in TFS 2015? 使用Team Foundation Server 2015使用Team Explorer创建团队项目 - Creating a team project with Team Explorer using Team Foundation Server 2015 如何在TFS 2015中使用Rest API创建新的团队内部团队项目 - How to create a new Team inside team project using Rest API in TFS 2015 Team Build包含多个团队项目 - Team Build with multiple team projects Team Foundation Server-如何团队构建团队项目,但不拉动所有分支 - Team Foundation Server - How to team build a Team Project but not pull all branches 在Team Foundation Server 2015上生成不可读的文件 - Build unreadable files on Team Foundation Server 2015 如何配置 Team Foundation Server 2015 以强制所有工作区仅限本地? - How to configure Team Foundation Server 2015 to force all workspaces to be local only? 在team foundation 2015 API中更新构建定义 - Update build definition in team foundation 2015 API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM