by Jesper Hess Nielsen
22. September 2008 06:53
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.
e0ff2b0c-ca02-4f50-aa65-e21f4797cef9|1|4.0
Tags: