The steps need to be: 1) From inside Visual Studio.NET right click on the .build file, and from the context-menu select open with.. 2) Select html/xml editor, and click Set default (so next time you can skip the open with) 3) Put an XML schema from in c:\Program Files\Microsoft Visual Studio.NET\Common7\Packages\schemas\xml\ which can be got from http://nant.sf.net/schema/ 4) Match the schema you put in the xml\ directory with the .build file, e.g. <project xmlns=http://nant.sf.net/schema/ 5) Should now have Intellisense and validation!
Duncan ----- Original Message ----- From: "Nick Varacalli" <[EMAIL PROTECTED]> To: "'Ben Lowery'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, September 20, 2003 6:41 PM Subject: RE: [Nant-users] Getting vs.net 2003 to recognize .build files > I have also been trying to figure this out, but to no avail. If I don't find > a VS.Net solution soon, I will hack nant locally to recognize .xml files as > .build files. > > On a VS.Net related note, is anyone writing any useful macros for editing > .build files? > > Nick > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ben Lowery > Sent: Thursday, September 18, 2003 15:09 > To: [EMAIL PROTECTED] > Subject: [Nant-users] Getting vs.net 2003 to recognize .build files > > > Hi there, > > I decided to try and hook up .build files today in vs.net 2003 and I've > gotten part of the way there, but I could use a hand with the last step. > So far, I've built the schema, put it in the right place, and used the > VSTweak program to try and get .build files to be recognized and treated > as .xml files. Right now, .build files are colorized in vs.net just > fine, but I can't get the validation or intellisense to work. If I > change the extension of a build file to .xml, everything works just like > it should. > > I've seen mention in a couple blogs of people getting vs.net to properly > handle .build files. Could anyone fill in the magic steps in this > little process? > > 1. Make build file using <nantschema> > 2. Put build file in proper place > 3. Make .build files be treated like .xml files using VSTweak > ** A miracle occurs ** > 5. Enjoy editing .build files in vs.net 2003 with syntax highlighting & > intellisense. > > Thanks for any assistance! > > --b > > p.s. if anyone has successfully converted the nant schema to RelaxNG > compact notation for use with the new nxml mode for emacs, i would love > to hear about that as well. i've got in part of the way there, but it > too is being a pain. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users