I eventually got it working.

First make sure you define your xmlns in the project element...

<project xmlns="http://nant.sf.net/release/0.85-rc4/nant.xsd"; ...

Then you can tell studio where the schema file is by adding a catalog xml 
file (any name) into studios schema folder...

C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas

for example call the file nant.xml and its content would be...

<SchemaCatalog xmlns="http://schemas.microsoft.com/xsd/catalog";>
    <Schema href="file://C:/Program Files/NAnt/schema/nant.xsd" 
targetNamespace="http://nant.sf.net/release/0.85-rc4/nant.xsd"/>

    <Association extension="build" schema="file://C:/Program 
Files/NAnt/schema/nant.xsd"/>
</SchemaCatalog>

Paths may vary. This associates the xmlns and the build extension to the 
schema file.

I also noticed that studio provides a schemas property for xml files which 
you can select schemas files from the registered schemas or ones within the 
solution. I couldn't get this to work properly without manually specifying 
the xmlns attribute though!

Tony
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to