I recently updated the source code to my Babil project in order to port it to the new ASP.NET MVC 2 beta. I decided I could as well update all other libraries the project depends on, which have been updated too in the meantime.
This took some time, but if you want to create a new website project based on ASP.NET MVC and NHibernate, here's the latest bits:
- Get the ASP.NET MVC 2 beta source code from Codeplex and compile it. Remember to also compile the
Microsoft.Web.Mvc.dlllibrary that contains some useful code. - Get NHibernate 2.1, the latest release of the popular O/RM library.
- Get the latest MySQL .NET connector (6.1.3) if you use NHibernate against a MySQL database.
- If you use NHibernate.Search for full text indexing:
- Get the latest stable Lucene.NET version. Note: the latest stable versions are usually quite outdated, you may prefer to get the latest SVN revision and patch it to run on medium trust.
- If you need code from the Lucene.Contrib project (special analyzers, similarity queries, etc.) get the source code from the official repository and compile the Contrib project separately against the stable Lucene DLL.
- Download the NHibernate.Search source code and compile it against the NHibernate and Lucene DLLs you just downloaded.
- If you use NHibernate.Validator, get the source code and compile that too against the latest NHibernate DLL.
- For your dependency injection needs, you might use Autofac. In that case, you also need to download the latest stable Autofac library and the source code of the web integration library. This integration library must be compiled using the beta version of ASP.NET MVC 2.
That's it, now throw everything in the /Bin folder and - crossing fingers - you should be able to finally write some own code. ![]()



