Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010: Exclude a project from build

I have a solution that has a wcf service that connects to SQl server. When I am offline I have another service that I use for development and testing that stores to in memory storage. I would like to exclude the test service from my Team build as I do not wish to deploy this to the customer etc. How do I do this?

like image 866
Aran Mulholland Avatar asked Sep 28 '11 05:09

Aran Mulholland


1 Answers

In VS2010, select Build | Configuration Manager .... In the Configuration Manager dialog, select in the active configuration list. Enter a name (eg. TeamBuild) and select to copy from Release. Click OK.

enter image description here

Now make sure that only projects are checked that you want to have build a scheduled team build (exclude your test service). Click OK, save you solution and check it in.

In your Team build definition, under Build process, select the solution you just have saved and under the Configuration tab, select the TeamBuild configuration. Now, only the projects that you have selected are build.

like image 54
kroonwijk Avatar answered Oct 20 '22 21:10

kroonwijk