NaNT .build file Intellisense
If you want to get some limited Intellisense when you’re editing or creating NaNT .build files then you can try the following:
- Copy the nant.xsd file from inside your NaNt schema directory.
- Paste it into your Visual Studio XML Schemas directory (e.g. C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\
- Restart Visual Studio
When you next load up an existing .build file, Visual Studio should detect it correctly as an XML document. To get the Intellisense to work, you will need to add the XML Namespace to the <project> tag. Start typing the additional attribute ‘xmlns=’ within the opening <project> tag and Visual Studio should offer you the following auto-complete option:
xmlns=http://nant.sf.net/release/0.85/nant.xsd
So your full project tag should look something like :
<project xmlns="http://nant.sf.net/release/0.85/nant.xsd" name="Your Build Name" default="all" basedir=".">
For new .build files, you can select the Schema you want to base your new XML document on by browsing in the Schemas box in the Properties window. You should find xml\Schemas expanded and the nant.xsd entry able to be selected. Tick the nant.xsd box.
- Share this:
- StumbleUpon
4 Responses to NaNT .build file Intellisense
Leave a Reply Cancel reply
Tag Cloud
3G adobe agriculture analogy Apple authentication berkovitz BIN Contacts CreatePageURLSegment credit card credit cards developers Episerver Esendex Google iPhone Joost Linux log4net logging luhn Mac maestro Mastercard Microsoft NMock Page PATH payWave Plesk regex RFID security software SQL Server Stored Procedures SugarOS T-SQL TechEd uk validation Visa Windows XCodeCategories
Jbjon
- If anyone from 1989 calls and needs a database reference manual get them in touch with me! #dataease #mandrawer http://t.co/CbnFBuUq
- @KnackeredCoder oh I agree. It all helps. 2nd in the table is a great start. I'd just like wins to be try based,penalty light tussles
- @KnackeredCoder not exactly singing. As they said it was Scotland that lost not England that won.
- That was so close to a try for Scotland. I reckon it was his wrist that stopped that ball rotating but it was nearly his hand. #BBC6nations
- @rhys_isterix I think they're getting back on top of this game. England dented their confidence mid first half.


If you include other external build files, they too must reference the same namespace (as pointed by Jonathan himself).
I have a question: How can Visual Studio automatically recognize that the xml schema associated with an existing .build file is nant.xsd?
[...] to 3) Jean-Paul S. Boodhoo’s Blog – NAnt Starter Series (a detailed tutorial) and 4) NaNT .build file Intellisense (a cool Visual Studio intellisense feature). 10.759180 [...]
Nice one