开发者

Building select projects only with Team Foundation Build

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://i开发者_运维知识库mg686.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.


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.


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>


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜