NuGet:NHibernate,Castle.Core 3.0,ProxyFactoryFactory在哪里? [英] NuGet: NHibernate, Castle.Core 3.0 and where is ProxyFactoryFactory?
问题描述
我为新项目安装了NuGet软件包NHibernate和Castle.Core 3.0.通常,我们手动复制dll.这是我第一次使用NuGet做到这一点.
I installed with NuGet the packages NHibernate and Castle.Core 3.0 for a new project. Usually we copied around the dlls manually; it is the first time I do that with NuGet.
现在,我找不到如何配置ProxyFactoryFactory,或者说,我找不到它.我在项目中引用了NHibernate和Castle.Core(我可以在Castle.Core-包中找到的唯一dll),并配置了以下内容:
Now I can't find out how to configure the ProxyFactoryFactory, or let's say, I can't find it. I referenced NHibernate and Castle.Core (the only dll I could find in the Castle.Core - package) within the project, and configured the following:
<property name="proxyfactory.factory_class">
NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle
</property>
这导致:
Class Initialization method Tests.UnitTest1.MyClassInitialize threw exception.
NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException:
NHibernate.Bytecode.UnableToLoadProxyFactoryFactoryException: Unable
to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle' during configuration of proxy factory class.
显然该dll丢失了,但是在哪里可以找到? NuGet中有一个名为Castle.DynamicProxy
的程序包,但已被标记为已过时.
Obviously this dll is missing, but where can I find that? There is a package in NuGet called Castle.DynamicProxy
, but it is marked as obsolete.
p.s .:在Castle.Core 3.0-程序包的描述中,它说:...包括DynamicProxy ...
p.s.: In the description of the Castle.Core 3.0 - package, it is said: ... including DynamicProxy ...
推荐答案
最新版本的NHibernate不需要配置代理工厂.
The last versions of NHibernate do not require configuring a proxy factory.
默认情况下使用内部适配器,而旧的适配器不再是项目的一部分.
An internal one is used by default and the old adapters are not part of the project anymore.
这篇关于NuGet:NHibernate,Castle.Core 3.0,ProxyFactoryFactory在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!