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 app location -  https://code.google.com/apis/console Switch on the "Blogger API v3" Get the latest APIs client library for PHP location -  https://code.google.com/p/google-api-php-client/downloads/list Upload the files to your host location on on localhost Extract 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 se

My two cents on new year resolution

What is the plan for the new year ? - need to think on what are we trying achieve during next year 2018 - basically the life goals - may be personal or professional - and also it should be realistic (not something like going to Mars ;)) Why we need a plan for the new year ? - basically a goal without a plan is a DREAM - And also should be able to measure (what you cannot measure, you cannot manage) How to prepare a new Year resolution/plan ? - Leave some buffer time - Make changes during the year (life is changing/evolving) - Plan is only for you (do not share it) - When a milestone is achieved, celebrate - Try to stick to the plan - otherwise no point of planing

Assets and Liabilities as Rich Dad, Poor Dad explains

I was reading "The rich dad poor dad by Robert Kiyosaki" here is a one point that he mentions on that. Basically Asset as he says is little bit different than on books. If something puts money in your pocket it is a asset. And Liabilities are the ones that takes money out of your pocket. OK for example a house or a car may seems like an Asset but it takes money out of you pocket to maintain them. But if you rent them or make them to make money at the end of the day you can convert it to a asset. Basically that what rich people do. They buy assets. Middle class buy liabilities (thinking those are assets) and stuff (a lot of them that not used or that not needed). Lower class buy to consume (basic needs like foods).