This is just an fyi, hopefully it will help someone else. ymmv If I
have forgotten something, please let me know.
Below is a quick checklist to get a S#-based solution to work with
NHibernate 2.1 and Castle 2.0. It isn't enough to just update your own
project and its references to NHib 2.1 and Castle 2.0. You will need
to update and rebuild S# along with other dependencies.
Besides getting the latest binaries of NHibernate 2.1, you will need
to get the Castle 2.0 source, replacing the NHibernate assemblies with
the 2.1 ones and then rebuild Castle. If you get the latest binaries
from FluentNHib (1.0.538), it has already been built against NHib 2.1
and Castle 2.0. Copy all of these rebuilt assemblies into the S# bin
directory.
Then you will then need to get NHibernate.Validator 1.2.0 b1 from here
http://sourceforge.net/projects/nhcontrib/files/ (scroll down to
NHibernate.Validator and get the binaries). They are already built
with NHib 2.1 and Castle 2.0, so just grab the binary. Copy to the S#
bin directory.
Next you will need to get CommonServiceLocator.WindsorAdapter from
here
http://commonservicelocator.codeplex.com/Wiki/View.aspx?title=Castle%20Windsor%20Adapter
You will need to replace the libs in the SharedLibs dir with those of
NHib 2.1 and Castle 2.0. Rebuild it and copy to the S# bin directory.
Get the MvcContrib source from here
http://www.codeplex.com/MVCContrib
and copy your rebuilt NHibernat 2.1 and Castle 2.0 assemblies into the
bin\castle directory and rebuild MvcContrib. copy the MvcContrib*
assemblies into the S# bin directory.
At this point, you should be able to rebuild S#. (You might have to
correct some references...I think a reference to NHibernate.Validator
complained), so you might have to open the solution in VS before you
rebuild. Replace the S# assemblies in your shared lib folder for your
project with these.
Don't forget with NHib 2.1 you must specify in your NHibernate
configuration file which dynamic proxy you will be using (LinFu,
Castle or Spring) and deploy the specified assembly too.
I believe that is all that is necessary to get it working (hopefully I
didn't forget anything).