如何从一个TFS团队构建定义中构建2个解决方案

如何从一个TFS团队构建定义中构建2个解决方案

本文介绍了如何从一个TFS团队构建定义中构建2个解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当大的复杂应用程序,在一个解决方案中有一个智能客户端前端,在另一个解决方案中有一个Web服务层.我们在TFS 2010中使用2个团队构建定义来构建解决方案.我们仍在使用MS Build脚本,而不是基于工作流程的新模板.

I have a pretty large complicated application that has a smart client front end in one solution and a web services layer in another solution. We use 2 team build definitions in TFS 2010 to build the solutions. We are still using MS Build scripts not the new workflow based templates.

我们如何使用单个构建定义来构建两个解决方案.我们愿意接受MS Build脚本中的技巧,也可以使用新的工作流模板.

How can we use a single build definition to build both solutions. We are open to either tricks inside MS Build scripts or moving to the new workflow templates.

推荐答案

如果我了解您要执行的操作,则可以通过在项目组中创建两个解决方案来简单地设置要构建的两个解决方案.

You can simply set two Solutions to build by creating them in an item group if I am understanding what you are trying to do

    <SolutionToBuild Include="$(BuildProjectFolderPath)/../../$(SuiteSourceBranchRoot)/MyCompany.Suite.sln">
      <Targets></Targets>
      <Properties></Properties>
    </SolutionToBuild>
    <SolutionToBuild Include="$(BuildProjectFolderPath)/../../$(SuiteSourceBranchRoot)/MyCompany.Another.sln">
      <Targets></Targets>
      <Properties></Properties>
    </SolutionToBuild>
  </ItemGroup>

您还可以在任何构建步骤中使用以下方法进行操作:

You can also do it inside any build step with:

<!-- Build the deployment solution. -->
<MSBuild Projects="$(SolutionRoot)\$(SuiteSourceBranchRoot)/Company.Deployment.sln" Properties="Configuration=Release;" />

这篇关于如何从一个TFS团队构建定义中构建2个解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:44