Not getting intellisense with nHibernate

I was having problems with not being able to get intellisense to work right with the XML mapping files with nHibernate latest release. I searched around and from everything I was reading it was just drop the files in C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas (for VS2008) and it’s good to go but it definitely was not working.

Eventually I stumbled upon .Net musings’s Intellisense for NHibernate 2.0 in Visual Studio 2008 , where the solution was to rename the files and append -2.2 after the file name and before the extension giving you nhibernate-mapping-2.2.xsd, nhibernate-configuration-2.2.xsd, nhibernate-generic-2.2.xsd.

BloggingContext.ApplicationInstance.CompleteRequest();

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s