I just wish the (Xml Schema) noNamespaceSchemaLocation hint was honored in
the editor. :) Oh, that would make it so easy...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xsd_ref_7ld1.asp

 BTW. The NAnt schema file generated by the <nantschema> task doesn't create
array and collection task elements correctly. The file is not complete and
doesn't correctly represent the buildfile structure. It will get better, I
just have to fix the task (which I'm working on this exact moment for the
next release). Also, this xsd will never be able to validate  the build file
as it cannot know certain things about how the file will be expended when it
is read by nant. It cannot assert type information, as an example.

> > > > ----- Original Message ----- 
> > > > From: Dan Moseley
> > > > To: [EMAIL PROTECTED]
> > > > Sent: Wednesday, December 03, 2003 12:22 PM
> > > > Subject: RE: [Nant-users] Validation of build files in VS.NET
> > > >
> > > >
> > > > Hi Gerrod,
> > > > Save the XSD from the webpage into this folder:
> > > >     C:\Program Files\Microsoft Visual Studio .NET
> > > > 2003\Common7\Packages\schemas\xml
> > > > This is the secret place where VS.NET looks for schemas.
> > > >
> > > > Then open an XML file in the VS editor, and click inside it. Go to
the
> > > > Properties window, and set targetSchema using the dropdown to the
nant
> > > > schema, which it will now find. (This just puts in the correct xmlns
> > > > attribute.) Then validation and intellisense should work fine.
> > > >
> > > > The XML editing experience is still sometimes a bit quirky. In VS
> > Whidbey
> > > > (the next version), the XML editor is being rewritten from scratch
and
> > is
> > > > greatly improved - and hopefully it will be easier to associate a
> schema
> > > > with your document as well.
> > > >
> > > > Do ping me if you still have problems.
> > > >
> > > > Dan -- msbuild team -- danmose[at]microsoft.com
> > > >
> > >
> >
>



-------------------------------------------------------
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