English 中文(简体)
Building select projects only with Team Foundation Build
原标题:
  • 时间:2009-12-01 08:26:14
  •  标签:
  • tfs
  • tfsbuild

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.

最佳回答

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?





相关问题
Why not use TFS as a build / CI solution?

Currently our build solution is set up using TFS + MS Build scripts. TFS is also being used as a CI server. I ve seen several posts on this site telling people about other CI solutions. Are there ...

Get files from TFS under Linux [closed]

is there a free (command line) tool for linux which with I can get all files from a TFS-Repository (no Check in / Check out required - only get actual version)?

upgrading tfs 2008 sp1 to use sql server 2008

I have an instance of tfs 2008 supported by sql server 2005. I want to change the sql server machine by doing a restore based move. I also want to change the version of sql server to 2008. I know ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

TFSReg in 2010 Beta 2?

does anybody know what is the equivalent of the TFSReg.exe command-line tool in 2010 Beta 2? I cannot find it anywhere, I searched the entire Program Files tree. Was it renamed? Moved? Replaced by ...

热门标签