Intellisense for NAnt, NAntContrib, VaultTasks
This is cool (via:Mihir) .
1. Use this build script in NAnt bin and build
<?
xml version="1.0" encoding="utf-8" ?><
project name="GenerateNAntSchemaForVS.NET" default="genschema"><property name="SchemaFile" value="NAnt.xsd"/>
<target name="genschema">
<nantschema output="${SchemaFile}" target-ns="http://someuri"/>
</target>
</
project>
2. Copy/Move the NAnt.xsd file in bin to C:Program FilesMicrosoft Visual Studio .NET 2003Common7Packagesschemasxml
3. When you create build file in VS.net ensure you specify xmlns in <project> .
Eg:
<project name="myProject" xmlns="http://someuri" >
And Voila! you have intellisense for all tasks including NAntContrib and VaultTasks
What we are using is the beautiful nantschema task.
Categories: Uncategorized