Building select projects only with Team Foundation Build

眉间皱痕 提交于 2019-12-25 01:49:02

问题


I’m trying to set up Team Foundation Build and so far it’s running ok with builds, tests and code analysis.

My problem is, that I can’t figure out how to build just a subset of the projects included in the solution. I know how to use the configuration manager to create custom solution configuration that will build/deploy a selection of my projects. But when I create a new build definition, I only get the default “Debug” and “Release” configurations.

alt text http://img686.imageshack.us/img686/7453/builddefinitionprojectf.jpg

How do I set up a Team Foundation Build that only includes a selection of the projects in the solution?

I know I may be on the completely wrong track here, but I've been digging around for a while and so far it's my best guess.


回答1:


Your custom configurations won't appear in the build definition wizard because we don't parse the solution file format. You can, however, just type it in and that will work just fine without manually editing the TFSBuild.proj file.




回答2:


You will need to edit the TFSBuild.proj file generated by Build Definition created.

I have never used it to specify other configuration, but try using ConfigurationToBuild:

<ItemGroup>    
   <ConfigurationToBuild Include="Release|Any CPU">
      <FlavorToBuild>Release</FlavorToBuild>      
      <PlatformToBuild>Any CPU</PlatformToBuild>
   </ConfigurationToBuild>
</ItemGroup>



回答3:


I think, you already answer your question: put the subset of the projects into the new solution and create new build definition for this solution.

What other configuration would you expect then Release and Debug?



来源:https://stackoverflow.com/questions/1824747/building-select-projects-only-with-team-foundation-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!