0

我们使用“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' placet

\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. 或者,我如何支持这两个版本?

谢谢你。

4

1 回答 1

0

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

于 2020-07-21T18:22:30.930 回答