I'm also having similar problems with nant schema. I couldn't get it to work
using the method you described.
There's a workaround: if you add the schema to the same project (maybe just
the same solution - I don't remember) as your build files - the intellisense
works (more or less - the schema is not very complete at the moment).

Jarek
----- Original Message ----- 
From: "White, Jeffrey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 10:03 PM
Subject: [Nant-users] RE:Editing .build files w/syntax hilighting in VS.NET


> I've read through the archives and followed previous advice regarding how
to get .build files fully recognized by VS.NET with Intellisense/validation.
I've configured it such that VS.NET recognizes .build files as XML, and the
opened files have syntax hilighting. However, I can't get
> Intellisense/validation working.
>
> Here's what I've done:
> 1. I went to http://nant.sourceforge.net/schema/ and downloaded the latest
schema (nant-20030903.xsd)
> 2. I saved the nant-20030903.xsd file into my C:\Program Files\Microsoft
Visual Studio .NET 2003\Common7\Packages\schemas\xml folder
> 3. I edited my <project> tag in my .build file to be: <project
name='ProjName' default='build' xmlns='http://nant.sf.net/schema/'>
>
> Now when I restart VS.NET and open the .build file, I get an error(in the
schema view, as opposed to the source view), stating: "The XML Designer
encountered the following error while reading this file: Document Element
must be schema. Please return to source view and correct these errors."
>
> I also tried using the <nantschema> tag like this:
> <nantschema output="C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Packages\schemas\xml\nant-current.xsd"
target-ns="http://nant.sourceforge.net/schema/"/>
>
> I got the same error as above from the schema view.
>
> Does anyone know what's going on? Thanks in advance!
>
> Jeff
>
> Jeffrey L. White
> Software Build Manager
> Knight Financial Products
> (212) 209-1419
>
>
> DISCLAIMER
> This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information. If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of
> this e-mail, and any attachments thereto, is strictly prohibited. If you
have received this e-mail in error, please immediately notify me and
permanently delete the original and any copy of any e-mail and any printout
thereof.
> E-mail transmission cannot be guaranteed to be secure or error-free.  The
sender therefore does not accept liability for any errors or omissions in
the contents of this message which arise as a result of e-mail transmission.
> NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
> Knight Trading Group may, at its discretion, monitor and review the
content of all e-mail communications.
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to