如何更新Microsoft.Isam.Esent.Interop?

How to update Microsoft.Isam.Esent.Interop?

我们用 'Microsoft.Isam.Esent.Interop' 创建了一些库。在另一台 PC 上 运行 之后,我得到了这个异常:

"Could not load file or assembly 'Microsoft.Isam.Esent.Interop, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

在我们的 PC 上,我们在

处有版本“10.0.0.0”和“6.3.0.0”

\Microsoft.NET\assembly\GAC_MSIL\microsoft.isam.esent.interop\v4.0_10.0.0.0__31bf3856ad364e35\Microsoft.Isam.Esent.Interop.dll

\Microsoft.NET\assembly\GAC_MSIL\microsoft.isam.esent.interop\v4.0_6.3.0.0__31bf3856ad364e35\Microsoft.Isam.Esent.Interop.dll

但是,生产只有“6.3.0.0”。所以,我有几个问题:

  1. 如何将 'Microsoft.Isam.Esent.Interop.dll' 版本从“6.3”更新到“10.0”?
  2. 我需要用旧版本编译才能工作吗?
  3. 或者,我怎样才能同时支持这两个版本?

谢谢。

DLL版本取决于Win版本,因为新的Win版本有新的数据类型。