0 comments

Just a quick note about enabling Visual Studio Intellisense when editing NAnt .build files. It's been blogged about many times but I spent some time messing with it this morning so I thought I might as well jot it down for future reference :)

First, download this file and place it in C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas.

Then, in your .build file, edit the root element, adding an xmlns property:

<project name="MediaPortal" default="all" xmlns="http://nant.sf.net/release/0.86-beta1/nant.xsd">

And lastly, associate .build files with the XML editor in VS. This is done in Tools -> Options -> Text Editor -> File Extensions. Simply add an item with extension "build" and set it to use the XML editor.

comments powered by Disqus