Home > Uncategorized > Intellisense for NAnt, NAntContrib, VaultTasks

Intellisense for NAnt, NAntContrib, VaultTasks

This is cool (via:Mihir) .
 
Place all assemblies required for NAntContrib and VaultTasks  into bin of NAnt
 
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
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.
Follow

Get every new post delivered to your Inbox.