Click here to Skip to main content
15,799,019 members
Articles / Multimedia / OpenGL

How to Setup CruiseControl.NET for Starters

Rate me:
Please Sign up or sign in to vote.
2.00/5 (7 votes)
20 Jul 2008CPOL2 min read 51.8K   25   6
Shows the bare minimum steps to automate the build process of an ASP.NET Visual Studio 2005 solution


As you already know, CruiseControl.Net is an open source framework for build automation. Though there are hundreds of articles on the topic in the web, I was unable to find one that suited me as a starter. Hope this article helps people like me out there who want to get a taste of the continuous integration process using CruiseControl.Net, Visual Source Safe and Visual Studio.

I intend to showcase the bare minimum steps involved to automate the build process of an ASP.NET Visual Studio 2005 solution.


  • CruiseControl.Net
  • Visual Studio 2005 IDE
  • Visual SourceSafe

Getting Started

Install the setup files for either using the MSI installer or simply unzip the zip file (I used the later approach). You will find four folders namely, cctray, examples, server and webdashboard. Edit the ccnet.config file in the server to make it look like the following:

<project name="MyProjectBuild" queue="Q1" queuePriority="1">
    <category>Category 1</category>
    <sourcecontrol type="vss" autoGetSource="true" applyLabel="true">
   	<executable>C:\Program Files\Microsoft Visual Studio\
	    <executable>C:\Program Files\Microsoft Visual Studio 8\
        <xmllogger logDir="c:\TestCC\buildlogs" />

The above XML shows that I have my VSS db in another machine on the network \\filesvr1\myproj. I want CC.NET to get a clean copy of the source from vss location $/MyProject/Source to my local folder c:\testcc. Instruct VS IDE to build the solution c:\testcc\src\MySolution.sln.

Now I am ready to run the server. All I need to do is issue the following command from the command line:

ccnet -project:MyProjectBuild 

This will immediately integrate the project MyProjectBuild. The verbose output can be seen in the command prompt itself. To get a better view, the web dashboard needs to be configured. This can be done by simply creating a website pointing to the dashboard folder. Navigating to the default page would show the project integration status. Note that the ccnet.exe server has to be running to view the build status.

You can also apply triggers to schedule the build. This can be done quite easily using the <triggers> tag.


You can see how easy it is to get CruiseControl.Net running. This article just describes how to automate the build. The build is still not ready for deployment. Meaning I may want to place the build in another folder for release without the code behind. This is covered in the article, Automating ASP.NET Web Application project build using CruiseControl.Net and MSBuild.

Happy programming!


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Team Leader
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

GeneralCCNet XmlConfig Plugin Pin
void leenux();16-Apr-11 8:38
void leenux();16-Apr-11 8:38 
GeneralCCNET Pin
hemalvadgama22-Apr-08 4:29
hemalvadgama22-Apr-08 4:29 
QuestionIntegrating ncoverexplorer into [modified] Pin
ppayal5-Apr-08 22:25
ppayal5-Apr-08 22:25 

I am using for continuous integration for my project. I want to integrate NCoverExplorer also in it.

In my project I have created separate project for all unit tests and and separate project for the code to be unittested.

How should I change my file to integrate NCoverexplorer in it?

Any help?


modified on Sunday, April 6, 2008 3:31 AM

QuestionMissing a tag? Pin
Todd Davis5-Apr-08 6:47
Todd Davis5-Apr-08 6:47 
AnswerRe: Missing a tag? Pin
Judy Joy24-Jul-08 21:31
Judy Joy24-Jul-08 21:31 
GeneralCruiseControl and Source Safe configuration Pin
William F27-Jan-08 23:22
William F27-Jan-08 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.