Upgrading NHibernate and NHibernate Validator w / Nuget

As of today, the Nuget NHibernate Validator release is 1.3.1.4000 and says it has a> = NHibernate 3.1.0.4000 dependency, which implies that it must work with the latest NHib 3.2.

But NHib 3.2 now has its own ProxyFactory, so when they start, they get the following error:

System.TypeLoadException : Could not load type 'NHibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException' from assembly 'NHibernate, Version=3.2.0.2001, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'

Now I really don't need anything in NHib 3.2, although my preference would be to get both to work together.

Alternatively, I suppose I could go down to NHib 3.1, but my solution has 16 projects that include Nuget. This post suggests how to get and install an older package, but NHib 3.1 doesn't seem to be available separately from Nuget.

Installing only Validator using Nuget will install NHib 3.1 as a dependency. I have several projects that do not use Validator but only use NHib, and I assume that I can install Validator only to get the correct dependency, but this is not a very satisfactory solution.

Has anyone got the latest NHib (3.2) working with the latest NHib Validator? Suggestions?

Cheers,
Berryl

+5
source share
1 answer

NHib 3.1, Validator + NHib 3.1 , . NHib ( NuGet 1.4).

0

All Articles