— New online course!  Getting Started with Azure DevOps — Special launch price 50% off —

Intellisense for the NHibernate XML Schemas

by

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 “srcNHibernate“ 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 FilesMicrosoft Visual Studio 8XmlSchemas“.
  3. Restart Visual Studio

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


-Ben


One Response to "Intellisense for the NHibernate XML Schemas"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: