Adding the NHibernate Schema Files to Visual Studio 2010

Since I can never remember the steps on how to do do this, if you need to add the Schema Definition files (.xsd) from NHibernate to Visual Studio 2010, here are the steps you need to follow:

  • Download the latest version of NHibernate
  • Copy nhibernate-configuration.xsd and nhibernate-mappng.xsd to C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\
  • Restart Visual Studio if it is already open.

This is based off any article I found here on how to configure the xsd files in Visual Studio 2005. Pretty much the same steps, but a different folder.

If you want to configure this at the project level, take a look at this article on NHForge.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Reddit
  • DotNetKicks
  • Technorati
  • TwitThis

2 Comments to “Adding the NHibernate Schema Files to Visual Studio 2010”

  1. Mark 10 October 2010 at 12:51 am #

    This is not working for me, I am using VS 2010 Ultimate edition trial version.

  2. James 25 October 2010 at 10:28 am #

    @Mark,

    Did you try to restart Visual Studio? These steps worked for me in VS 2010 Ultimate when I am editing *.hbm.xml files.


Leave a Reply