Open the solution in visual studio. Create a new solution configuration with the following steps: [1]right click on the solution in solution explorer [2]choose Configuration Manager [3]create new configuration, and use the checkboxes to determine which projects you want included.
Use the name of this new configuration in your buildargs line of the msbuild task. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kermit Sent: Thursday, October 06, 2011 12:07 PM To: ccnet-user Subject: [ccnet-user] CruiseControl.NET - Exclude one or more projects in a CCNET Config file (MSBuild) Hi, As per the title, I am trying to workout how to exclude a project from CruiseControl.NET. Currently I have split up the configuration with a single XML file per project. The XML file has two MSBuild tasks, first one builds the project and the second one runs StyleCop against the project. All the projects are C#/.NET 3.5 or 4.0 solutions that also contain the new Database type projects and/or custom projects that currently cannot be built by our CruiseControl.NET server. <tasks> <msbuild> <description>Project 1t</description> <executable>C:\WINDOWS\Microsoft.NET\Framework \v4.0.30319\MSBuild.exe</executable> <projectFile>MySolution\MySolution.sln</projectFile> <buildArgs>/noconsolelogger /p:SolutionRoot="C:\Program Files (x86)\CruiseControl.NET\server\MyProject\WorkingDirectory\MyProject" / p:Configuration=Debug /v:diag</buildArgs> <targets>Build</targets> <logger>"C:\Program Files (x86)\CruiseControl.NET\server \ThoughtWorks.CruiseControl.MsBuild.dll"</logger> <timeout>900</timeout> </msbuild> ............ ............ At the moment CruiseControl.NET is building everything in the solution however I want to exclude particular projects in a solution (if possible). Thanks in advance.
