How to get Fluent NHibernate working with NHibernate 3.x

怎甘沉沦 提交于 2019-12-20 09:39:00

问题


How to get Fluent NHibernate working with latest NHibernate 3.x trunk

I got the following Exception :

Could not load file or assembly 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies.

EDIT :

This exception occurs in FluentNhibernate file PersistanceConfiguration

    public TThisConfiguration Cache(Action<CacheSettingsBuilder> cacheExpression)
    {
        cacheExpression(cache);
        return (TThisConfiguration)this;
    }

Don't understand, FluentNHibernate is well compiled against NH 3.x


回答1:


The FluentNHibernate download page has stable pre-release (pre 1.2) binaries for NHibernate 3.0 and 2.1.2




回答2:


Fluent just posted pre-release binaries (v1.2) with NH3 support. No need to recompile its sources.




回答3:


I'd grab it from github:

https://github.com/dagda1/horn_src

this will include all of the dependancies also so you don't need to mess about with compiling all the projects and their dependancies :)



来源:https://stackoverflow.com/questions/2349400/how-to-get-fluent-nhibernate-working-with-nhibernate-3-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!