Ramya,
Below is the task that I use to set up intellisense for custom tasks, NAnt Contrib, and NAnt.
<target name="createNAntSchemaUtil"
description="Creates an XML schema describing the tasks associated with the build.
Inputs: tools.dir location of NAnt build files
Steps: - Install new version of NAnt to its folder.
- Copy the NAntContrib tasks (DLLs) to the NAnt bin folder.
- Modify nantcontrib.dir property value to match NAnt installation folder.
- Modify nantschema task properties output and target-ns to reflect NAnt level.
- Copy the target-ns value to the xmlns value of the project task in each build file">
<property name="nantcontrib.dir"
value="C:\Nant-0.85-rc3\bin" />
<property name="visualstudio.xmlschema.dir"
value="C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml" />
<loadtasks assembly="${nantcontrib.dir}\NAnt.Contrib.Tasks.dll" />
<loadtasks assembly="${tools.dir}\NAnt.Extensions\bin\Debug\NAnt.ExtensionsTasks.dll" />
<nantschema output="${visualstudio.xmlschema.dir}\nant-0.85rc3.net-1.1.xsd"
target-ns="http://nant.sf.net/schemas/nant-0.85rc3.net-1.1.xsd" />
</target>
Note that the build file(s) will need to have the xmlns schema reference attribute 'target-ns' from the nantschema task.
example:
With these steps completed, VS should provide intellisense support.
Curt
Below is the task that I use to set up intellisense for custom tasks, NAnt Contrib, and NAnt.
<target name="createNAntSchemaUtil"
description="Creates an XML schema describing the tasks associated with the build.
Inputs: tools.dir location of NAnt build files
Steps: - Install new version of NAnt to its folder.
- Copy the NAntContrib tasks (DLLs) to the NAnt bin folder.
- Modify nantcontrib.dir property value to match NAnt installation folder.
- Modify nantschema task properties output and target-ns to reflect NAnt level.
- Copy the target-ns value to the xmlns value of the project task in each build file">
<property name="nantcontrib.dir"
value="C:\Nant-0.85-rc3\bin" />
<property name="visualstudio.xmlschema.dir"
value="C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml" />
<loadtasks assembly="${nantcontrib.dir}\NAnt.Contrib.Tasks.dll" />
<loadtasks assembly="${tools.dir}\NAnt.Extensions\bin\Debug\NAnt.ExtensionsTasks.dll" />
<nantschema output="${visualstudio.xmlschema.dir}\nant-0.85rc3.net-1.1.xsd"
target-ns="http://nant.sf.net/schemas/nant-0.85rc3.net-1.1.xsd" />
</target>
Note that the build file(s) will need to have the xmlns schema reference attribute 'target-ns' from the nantschema task.
example:
<project default="build" xmlns="http://nant.sf.net/schemas/nant-0.85rc3.net-1.1.xsd">
With these steps completed, VS should provide intellisense support.
Curt
----- Original Message ----
From: Ramya Niranjan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, July 12, 2006 12:02:59 AM
Subject: [NAnt-users] displaying custom tasks in the intellisense view.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
From: Ramya Niranjan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, July 12, 2006 12:02:59 AM
Subject: [NAnt-users] displaying custom tasks in the intellisense view.
Hello,
I have created a couple of custom tasks and they are working fine. I need to display the tasks and the corresponding attributes in the intellisense window in VS.NET 2003 IDE. Could any one tell me how to go about with this?
Thanks and Regards,
N
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
