简体   繁体   English

NHibernate 2.1中的LinFu版本

[英]LinFu version in NHibernate 2.1

I'm migrating the data layer of our application to NH version 2.1.0 (from 2.0.1) and noticed the use of LinFu. 我正在将应用程序的数据层迁移到NH 2.1.0版(从2.0.1版开始),并注意到使用LinFu。 I discovered that framework and want to use it in other pieces of the application, especially I want to use the LinFu.Reflection.dll, which requires a reference to LinFu.DynamicProxy and here comes the trouble, the 1.0 final version of LinFu that I can find on google.code is not the same version used by NHibernate itself. 我发现了该框架,并希望在应用程序的其他部分中使用它,尤其是我想使用LinFu.Reflection.dll,该文件需要引用LinFu.DynamicProxy,而麻烦之处在于,我最终获得了LinFu的1.0最终版本可以在google.code上找到与NHibernate本身使用的版本不同的版本。 Do I need to rebuild NHibernate.ByteCode.LinFu.dll changing the reference to the available version? 我是否需要重新构建NHibernate.ByteCode.LinFu.dll,将引用更改为可用版本? If not, what else? 如果没有,还有什么?

I have faced the same problem a few days ago. 我几天前也遇到过同样的问题。 There's a tool named ILMERGE that merges .NET DLL-files, and that way you should be able to have several versions of the same DLL in your application. 有一个名为ILMERGE的工具可以合并.NET DLL文件,这样您就应该能够在应用程序中拥有同一DLL的多个版本。

Unfortunately I haven't tested the tool yet, I didn't get around to it, but I'll test in the next week. 不幸的是,我还没有测试过该工具,我还没有解决它,但是我将在下周进行测试。

But Rhino Mocks for example, has a binary with all dependencies included: http://ayende.com/projects/rhino-mocks/downloads.aspx , so it seems doable. 但是,例如Rhino Mocks,有一个包含所有依赖项的二进制文件: http : //ayende.com/projects/rhino-mocks/downloads.aspx ,因此似乎可行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM