Intellisense for the NHibernate XML Schemas

I saw Chris Bowen speak at Microsoft in Waltham, MA last week and he tipped me off to a (new?) feature in Visual Studio 2005.  In Visual Studio 2005, you can make the IDE detect custom XML schemas and then let you do intellisense.  That got me thinking about how to set that up for NHibernate.  A quick search on Google got me to a post on Aaron Stebner's blog with instructions on how to set it up. 

It's amazing simple. 

  1. Download the NHibernate source and go to the “src\NHibernate“ directory
  2. Copy nhibernate-configuration-2.0.xsd, nhibernate-mapping-2.0.xsd, and nhibernate-generic.xsd to the Visual Studio “schemas“ directory.  By default, the schemas directory is “C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas“.
  3. Restart Visual Studio

That's it.  No more hunting around and guessing what is valid NHibernate mapping or configuration xml syntax.

-Ben

posted @ Sunday, January 15, 2006 8:46 AM

Print

Comments on this entry:

# re: Intellisense for the NHibernate XML Schemas

Left by Lucio at 2/1/2006 9:52 AM
Gravatar
You can do that in VS2003 too. I only put nhibernate-mapping-2.0.xsd into C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml

It's a little funny, because it worked perfectly for me, but not for my coworker. Maybe his VS schemas dir is somewhere else, but it worked for me anyway.

# re: Intellisense for the NHibernate XML Schemas

Left by Rothariger at 2/9/2006 12:24 PM
Gravatar
Thanks A LOT!!

# re: Intellisense for the NHibernate XML Schemas

Left by Marcos Dell Antonio at 5/29/2006 9:12 AM
Gravatar
Thanks! :)

# chubby women cam chat

Gravatar
DpiWMt0 | <a href="http://orgs.utulsa.edu/ultimatefrisbee/phpBB2/.CVS/trunk/.1/free-live-strips.html">porn video free online</a>

# bathroom cam movie

Gravatar
uKIVyt0 | <a href="http://blogs.alti.asu.edu/wp-content/themes/clean/.f/live-showering-nude.html">watch house webcam girls</a>

# VS Intellisense ja NHibernate

Left by DT blogi at 8/15/2007 4:56 AM
Gravatar
Visual Studio Intellisense’i on võimalik panna ära tundma NHibernate’i konfiguratsioonifaile. Kõik toimib nii Visual Studio 2003 kui ka 2005 peal. Visual Studio ja NHibernate’i seadistamist kirjeldab firma Benjamin Day Consulting I...

# re: Intellisense for the NHibernate XML Schemas

Left by labilbe at 4/22/2008 8:54 AM
Gravatar
Thank you very much!

# re: Intellisense for the NHibernate XML Schemas

Left by Chuck at 6/16/2008 11:35 PM
Gravatar
Thanks for the great information

# re: Intellisense for the NHibernate XML Schemas

Left by lakshman at 7/24/2008 2:12 AM
Gravatar
thanku very much.., working fine

# re: Intellisense for the NHibernate XML Schemas

Left by Pill Store at 11/23/2008 7:00 PM
Gravatar
Very good job. Add your blog to bookmarks.

# re: Intellisense for the NHibernate XML Schemas

Left by Tim Gava at 12/12/2008 12:28 AM
Gravatar
Thank you for this article.

# re: Intellisense for the NHibernate XML Schemas

Left by cialas at 12/12/2008 5:48 PM
Gravatar
I have problem with Visual Studio 2005 on my new Athlon 6000 :(
It’s wery important problem for my.

# re: Intellisense for the NHibernate XML Schemas

Left by Ben at 1/30/2009 8:26 PM
Gravatar
Thanks!!!

# Adding XML Schemas in MonoDevelop on OS X | Jeremiah Peschka, SQL Server Developer

Left by at 5/12/2009 6:59 PM
Gravatar
Adding XML Schemas in MonoDevelop on OS X | Jeremiah Peschka, SQL Server Developer

# re: Intellisense for the NHibernate XML Schemas

Left by ollie caine at 11/24/2009 10:10 AM
Gravatar
or for visual studio 9:

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

# JamesWampler.com » Adding the NHibernate Schema Files to Visual Studio 2010

Left by at 6/3/2010 12:22 PM
Gravatar
JamesWampler.com » Adding the NHibernate Schema Files to Visual Studio 2010

Your comment:



 (will not be displayed)


 
 
 
Please add 1 and 3 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789