Data Cogs Information Technology

posts - 137, comments - 144, trackbacks - 42

General

Search This Site

Powered by Google

Brisbane

Locations of visitors to this page

Archives

I spent the afternoon last Friday using NAnt to set up a build script for Redland Shire Council's new web site that will use Microsoft Content Management Server 2002.  There was a bit of a tricky part in migrating the .sdo database.  Here is the basic procedure...

  1. Download NAnt (I used the latest stable build, but if you have plenty of time on your hands you might want to experiment with the latest nightly builds.) .  You will also need NAntContrib for the VSS tasks.  I just copied the NAntContrib binaries into the NAnt\bin folder and that seems to work file. 
  2. Write a console application to migrate the .sdo database.  This source code in C# depends on an interop dll (CMSSDClientInterop.dll).  It was mostly written/adapted by Christopher Walker from Microsoft Consulting Services.
  3. Write an NAnt build file to: 
    a) clean out destination
    b) copy files from VSS
    c) build the solution
    d) copy to the desination server.
  4. Run NAnt.exe -buildfile CMS.build to run the script.

NAnt documentation is very sparse.  The best thing to do is study the NAnt.build file that comes with NAnt.  It's full of good examples.  I tried various ways to compile the VS.NET solution, but I ended up usuing good old devenv.exe.  The “solution” task that comes with NAnt is buggy in the verion 0.84 and I wasn't about to play around compiling the latest builds of the beta.  You could also use the csc tasks to perform individual compiles of projects, but that seems to lend itself to too much maintenance of the script as projects are added etc.

I also need to tidy up the NAnt build script to use properties (variables) for all the folder paths, etc.

posted on Wednesday, October 06, 2004 9:27 PM

Feedback

# Using NAnt to migrate MCMS projects Mark Daunt is Blogging!

10/6/2004 9:46 PM | Angus Logan

# re: Using NAnt to migrate MCMS projects

Good stuff.
10/6/2004 9:48 PM | Angus Logan

# Using NAnt to migrate MCMS projects Mark Daunt is Blogging!

10/6/2004 9:55 PM | Angus Logan

# Migrating MCMS projects to production using NAnt

10/8/2004 10:34 PM | andrew connell

# Redland Shire Council Launches their MCMS Website

11/24/2004 10:08 PM | Angus Logan

# Continuous Integration With MCMS

6/23/2005 1:45 PM | Joel Ross

# Continuous Integration With MCMS

6/23/2005 1:45 PM | Joel Ross

# RossCode.com - Continuous Integration With MCMS

RossCode.com - Continuous Integration With MCMS
6/23/2005 1:46 PM | Pingback/TrackBack

# re: Using NAnt to migrate MCMS projects

Hello, Here I have found a lot of interesting. thanks
11/16/2007 8:34 PM | mapquest usa

# re: Using NAnt to migrate MCMS projects

Hello,

I found this article very helpful but it would be awesome if you could provide a build example.
Thanks in advance

Regards
8/1/2008 9:08 PM | RJ

Post Comment

Title  
Name  
Url
Comment   
Protected by Clearscreen.SharpHIPEnter the code you see: