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

Your comment:



 (will not be displayed)


 
 
 
Please add 6 and 3 and type the answer here:
 

Live Comment Preview: