问题
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