Skip to main content

MSBuild with Cruise Control.net


MSBuild is the process that runs when you hit the command "build" (F5) on Visual Studio IDE. On VS 2003 completely that was done by the IDE and it was a black box for the developers. But on VS 2005 when you create a new project you can see a .csproj (or .vbproj) file is created and when you open that file in any text editor you can see some XML tags on that. Actually those are the parameters that were sent to do the build. The idea behind this is you can change the build process of your project.

The msbuild.exe file is at "(win drive :\) \WINDOWS\Microsoft.NET\Framework\v2.0.50727". The good thing in this is since msbuild.exe is included in .net framework you do not need an IDE to build your project. The solutions were deployed on a clean machine for testing and it have to be done daily on enterprise level solutions. And also on enterprise level solutions so many developers get involve and to minimize the conflict it has to use a version control system like VSS (Visual Source Safe).

So the machine which is used to deploy should get the latest code from the VSS, do the build process and notify the developers about the status (failed\succeeded). Since the real world solutions contain so many projects on one solution there are so many individual .csproj files. We have to run one by one of them and do the build. For these tasks it is easy to use Cruise Control.net (CC.net) which can do all the tasks I mentioned earlier very easily.

So by using CC.net it is easy to get the latest code from the VSS then to build the projects using MSBuild and to notify the status by e-mail.

This is the start of this automated build tools and my next tutorial on these technologies will come soon. Basically my target is to go step by step on these technologies and give you all a clear idea about the automated build tools.

Comments

  1. dude..,if u are a .net developer and is keen to go out from the black box..there is a good FOSS option called "MONO".its IDE is pretty much like the .NET.
    there have been some big c# projects done through the MONO and seems to be successful.
    if u have time,try to apt-get the package on a linux box.

    ReplyDelete
  2. actually on msbuild we can say it is as a whitebox because it gives the facility to customize the build process.
    And also cruise control is a free & open source tool. I believe that we should use the tools which we want at the time.and we I think we shouldn't go for tools just because it is open source.

    ReplyDelete

Post a Comment

Popular posts from this blog

Google API v3 with PHP using Blogger service

It was really hard for me to understand how the Google APIs are working at the first point and took few days for me to figure out. But after a successful working prototype it seems very easy. And also when I am searching for a simple example I was unable to find a good one that I can understand.

So let me list down step by step what I have done with URLs and as simple as I can.

Create a Google applocation - https://code.google.com/apis/consoleSwitch on the "Blogger API v3"Get the latest APIs client library for PHPlocation - https://code.google.com/p/google-api-php-client/downloads/listUpload the files to your host location on on localhostExtract the files to folder  named "GoogleClientApi"Create your php file outside of the folder Copy paste following code into the file and do the changes as needed  By changing the scope and the service object you can access all the services that is given by Google APIs through the PHP API library set given.
If there is anything …

How to get indexed by Google & Yahoo

I have seen a lot of ads and services online that provide the facility to get higher page ranks on search engines. But when I asked about those services on Google their respond was not much positive because they said it can decrease you page rank (because those services cannot be trusted always). It is happening because the page rank is depending on page visitors (as Google say). So the better way is to let the Google to index your site by sending them the address of your website. http://www.google.com/webmasters/ : here you can improve the traffic with the webmaster tools and you can send your website contents also. It is a legal, simple and direct hit.
You can send your web site address (even the blog) to Yahoo: https://siteexplorer.search.yahoo.com also. It helps them to index your pages on their search engines.


It is better to come up with the content and services which are really useful for the visitors and the traffic will be increased regularly. I have gone through a lot of expe…

How to Install ColdFusion 8 on Linux?

It was real pain for me to install ColdFusion on my Linux box with Apache. Anyway we have installed it and I thought to share it because this may help you also to install ColdFusion on a Linux box.
First of all open a shell and then continue on this.

Grant Execute permission to the Coldfusion‐8‐lin.bin binary file
chmod +x Coldfusion‐8‐lin.bin

Execute Coldfusion‐8‐lin.bin
./Coldfusion‐8‐lin.bin

Enter the Locale
1 (English)

Hit Enter 28 times to continue the agreement

Enter "Y" to accept the agreement

Enter the version to install
3 (Developer Edition)

Enter the next task to perform
1 (Server Configuration)

Enter whether you have an existing server configuration
2 (No existing server configuration)

Enter the next task to perform
5 (continue installation)

Enter the installation path
Hit enter to accept the default path

Hit Enter 30 times to continue the agreement

Enter "Y" to accept the agreement

Enter the serial number
Hit Enter for no serial number

Enter whether you h…