Excluding Specific Projects from a Team Build

Hello,

When configuring the Team Build you can choose a solution (or solutions) to build. However, if you have a solution that doesn't build all the internal projects by default, how can you have TeamBuild not attempt to build those projects, or to just ignore those projects?

My scenario is this... we have to obfuscate our code which means running an obfuscator on the bits prior to releasing them. We use an obfuscator that plugs into VS and has a separate project. When Team Build tries to run on this solution it cannot load the obfuscator project because we don't have a licence for our build machine. Without creating a whole new solution just for the build machine, how can I get Team Build to ignore some of the projects in the solution (and not try to build them).

Thanks!
~Joe

[822 byte] By [JoePD] at [2007-12-21]
# 1

Team build uses the solution configuration to tell which projects it should build in the solution. In the configuration manager you can create a configuration that doesn't have the projects you want excluded set to build. You can then choose that configuration when setting up your team build. I do this on my websites for example so that the Web Deployment project will build but not the site itself. For more on configuration management take a look at this http://msdn2.microsoft.com/en-us/library/kwybya3w.aspx.

Hope this helps!

dotnetwizkid at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...

Visual Studio Team System

Site Classified