Basically, grab the NAnt.xsd file from the schema folder under NAnt and paste it into the \Common7\Packages\schemas\xml folder under your visual studio install (common7 might have been renamed in VS2005)
Then in your nant scripts, include the xmlns attribute in the <project> tag. VS will prompt you with the available schemas, which should include NAnt after copying the file.
A couple of gotchas:
1) It's worth editing the xsd before you copy as the schema generated by NAnt contains the version of NAnt, and this means every time you upgrade you have to either reset teh version to that in your build scripts, or edit all your build scripts to use the current version. I personally set the nant xmlns to http://nant.sf.net/nant.xsd.
2) make sure you always use the same xmlns in all your build scripts. If you don't, or you omit the xcmlns from some scripts, then you can hit problems crossreferencing properties and targets as NAnt (correctly) thinks they don't exist (because they are not in the same namespace!)
HTH,
Bill
"Brass Tilde" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 22/09/2005 15:36
|
To: "Jason Wisener" <[EMAIL PROTECTED]>, <nant-users@lists.sourceforge.net> cc: Subject: Re: [Nant-users] Free version of Nant Pad? |
> Is there any tool out there that is open source or free that is an
> alternative to "nant" pad? Bascially looking for a "nant" editor.
There used to be some instructions somewhere in the NAnt docs for using
Visual Studio 2003 for this. That way, you could use the same editor
for your build script and your program. From what I remember, you'd get
intellisense operation as well.
Brad
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
As detailed in the company handbook, Avon Insurance has the facility to
monitor and read both incoming and outgoing communications by e-mail.
A copy of the company handbook can be found here: http://www.ho.nfumutual.co.uk/mutualnet/HANDBOOK/ITPolicies/ITSecure.htm
IMPORTANT
The information contained in this e-mail and any attachments is intended for the addressee only
and may contain legally privileged or confidential information. If you are not the intended
recipient you must not use, disclose, copy, distribute, alter, or take any action in reliance
on the information and Avon Insurance plc will not accept liability for any loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or representation as to its
accuracy or reliability. If you are not the addressee, please notify us immediately on 01789 202121*
and delete the material from your computer and destroy any copies.
Avon Insurance plc reserves the right to monitor and record incoming and outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result of any virus being passed on.
Avon Insurance plc (No. 209606).
Registered in England. Registered Office: Arden Street, Stratford upon Avon, Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British Insurers.
*For security and training purposes, telephone calls may be recorded and monitored.