c#同时引用spire.pdf.dll 和spire.ocr.dll 的额问题

spire.pdf.dll 和spire.ocr.dll 都用了Spire.License.dll,我现在要 spire.pdf.dll 和spire.ocr.dll 同时引用到一个工程中,有两个Spire.License.dll,如何引用。

稍微有点麻烦,你看下哪种方式适合你:

  1. 使用隔离应用程序域:创建一个单独的应用程序域,并在其中分别加载两个 dll,这样它们就不会共享同一个 Spire.License.dll
  2. 升级或降级 dll:如果两个 dll 都可以正常工作,请尝试将其中一个 dll 的版本升级或降级,以使它们使用相同版本的 Spire.License.dll
  3. 使用静态链接:将 Spire.License.dll 链接到您的项目中,这样它们就不再需要加载该 dll

希望可以帮到你

你应该用的是老版本,因为新版的Spire.PDF和Spire.OCR都没有Spire.License.dll这个文件,可以用在同一个工程中
目前最新版:
Spire.PDF 9.2.2: https://www.e-iceblue.cn/Downloads/Spire-PDF-NET.html
Spire.OCR 1.8: https://www.e-iceblue.cn/Downloads/Spire-OCR-NET.html