NAnt is a great tool for automating many computer tasks. For a quick introduction, check my previous articles Automating Your Computer Tasks with NAnt [1] and Use NAnt and WinRar to Create a Self Extracting Archive [2]. Authoring NAnt build files can be difficult without a good editor and editing XML is not my favorite thing to do anyway. Having to know all the tags and parameters for each NAnt task, makes it even less desirable. Looking at the current options, you can find several tools for authoring NAnt build files:
While the tools above will do the job, it would be nice if you could edit your build files in Visual Studio and have at least the basic intellisense that the IDE provides. It turns out that editing NAnt build files with VS and having code insight is a pretty easy thing to setup. Here is how it is done:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Editors\{412B8852-4F21-413B-9B47-0C9751D3EBFB}\Extensions]
"build"=dword:00000029
<project name="testProject" default="buildSetup" basedir="." xmlns="http://nant.sf.net/release/0.85/nant.xsd" >
Links:
[1] http://dotnet.dzone.com/news/getting-started-nant-automatio
[2] http://dotnet.dzone.com/news/use-nant-and-winrar-create-sel
[3] http://nantpad.com
[4] http://www.nantbuilder.com
[5] http://www.download.com/Editor4NAnt/3000-2352_4-10531916.html