Title: 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.

Reply via email to