RE: [nant-dev] Editing .build files w/syntax hilighting in VS.NET

2003-11-06 Thread Scott Hernandez
David,

You are correct, the nantschema task is under construction, and incomplete. I am 
working
on getting it back into shape to support collections and nested elements. It will get
done after I'm finished with the new userdoc stuff (which is really close).

I'm more than happy to hear about any additions to the nant.xsd file that you think
would help. The first one on my list is to get it defining the types correctly so it is
accurate :) Some of the features that I would like to add are kind of restrictive with
the expand properties features that we have. It would be nice to allow mappings of .net
enums to xsd but that would restrict the use of expanded properties, since the xsd 
would
choke on any invalid values for attributes that of type enum. There are ways around 
this
although it requires a little xml schema magic. :)


I'll post an update to all this when the xsd file is good to go again!


quote who=David Reed
 You can also set this by right-clicking on a .build file in a project
 (add one to a project temporarily if you need to) and choosing Open
 With...  Choose HTML/XML Editor and click Set as Default.

 File associations are cool, but the really neat trick is to get
 tag-completion for NAnt scripts in VS.NET!  I'm much too lazy to look up
 syntax every time I need it.  (Thank you, Bill, for ruining my
 short-term and short-term memories.)

 Copy a NAnt.xsd file that has the task schema in it into the following
 path (for VS.NET 2003):

 C:\Program Files\Microsoft Visual Studio .NET
 2003\Common7\Packages\schemas\xml\

 And then automagically any file with the correct schema definition at
 the top of the file will support tag completion in the VS.NET XML
 editor.  (I prefer to give all my build files .build.xml extensions
 anyway.)

 ?xml version=1.0?
 project name=eRealty.Desktop.ContractManager default=build
 xmlns=http://nant.sourceforge.net/;

 [Which reminds me...  The standard NAnt schema is incomplete, folks.  My
 tag completion, particularly for nested elements, often fails me and I
 have to actually read the help file.  Very upsetting.  Heh.]

 There are other handy type-definition things that could be done to
 enhance the NAnt.xsd and provide more and better Intelisense... but I'm
 kind of swamped at the moment or I'd've already done it.




---
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] Editing .build files w/syntax hilighting in VS.NET

2003-11-06 Thread Erv Walter
You can also set this by right-clicking on a .build file in a project
(add one to a project temporarily if you need to) and choosing Open
With...  Choose HTML/XML Editor and click Set as Default.

-Original Message-
From: Matthew Mastracci [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2003 11:05 AM
To: Nant-Developers (E-mail); [EMAIL PROTECTED]
Subject: [nant-dev] Editing .build files w/syntax hilighting in VS.NET

I'm not sure if this was posted to these lists before, but this registry

modification with allow you to edit .build file with nice XML syntax 
hiliting in VS.NET 2003.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Editors\{8281C57
2-2171-45AA-A642-7D8BC1662F1C}\Extensions]
build=dword:0027

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Editors\{C76D83F
8-A489-11D0-8195-00A0C91BBEE3}\Extensions]
build=dword:0028

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File 
Extensions\.build]
@={58E975A0-F8FE-11D2-A6AE-00104BCC7269}
unused=HTML




---
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



---
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] Editing .build files w/syntax hilighting in VS.NET

2003-11-06 Thread David Reed
 You can also set this by right-clicking on a .build file in a project
 (add one to a project temporarily if you need to) and choosing Open
 With...  Choose HTML/XML Editor and click Set as Default.

File associations are cool, but the really neat trick is to get
tag-completion for NAnt scripts in VS.NET!  I'm much too lazy to look up
syntax every time I need it.  (Thank you, Bill, for ruining my
short-term and short-term memories.)

Copy a NAnt.xsd file that has the task schema in it into the following
path (for VS.NET 2003):

C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Packages\schemas\xml\

And then automagically any file with the correct schema definition at
the top of the file will support tag completion in the VS.NET XML
editor.  (I prefer to give all my build files .build.xml extensions
anyway.)

?xml version=1.0?
project name=eRealty.Desktop.ContractManager default=build
xmlns=http://nant.sourceforge.net/;

[Which reminds me...  The standard NAnt schema is incomplete, folks.  My
tag completion, particularly for nested elements, often fails me and I
have to actually read the help file.  Very upsetting.  Heh.]

There are other handy type-definition things that could be done to
enhance the NAnt.xsd and provide more and better Intelisense... but I'm
kind of swamped at the moment or I'd've already done it.



---
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers