How to get Fluent NHibernate working with NHiberna

2019-03-10 14:02发布

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

3条回答
Ridiculous、
2楼-- · 2019-03-10 14:33

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

查看更多
小情绪 Triste *
3楼-- · 2019-03-10 14:55

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

查看更多
放荡不羁爱自由
4楼-- · 2019-03-10 14:57

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 :)

查看更多
登录 后发表回答