是否可以在同一项目中使用这3种产品?
刚刚下载的每个免费版本和Spire.PDF.dll版本是不同的,并导致错误"System.IO.FileLoadException: Could not load file or assembly 'Spire.Pdf, Version=3.0.10.54040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"“。
Spire.doc使用3.0.10.54040版本,Spire.Presentation使用3.0.49.58040版本
我试过用dependentAssembly
<dependentAssembly>
<assemblyIdentity name="Spire.Pdf" publicKeyToken="663f351905198cb3" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.10.54040" newVersion="3.0.49.58040" />
</dependentAssembly>但是有个错误
TypeLoadException: Could not load type 'sprẒ' from assembly 'Spire.Pdf,
Version=3.0.49.58040, Culture=neutral, PublicKeyToken=663f351905198cb3'.发布于 2014-07-08 01:35:19
单独的三个库不能在同一个项目中使用。您可以下载免费的Spire.Office,包括Spire.Doc、Spire XLS、Spire.Presentation、Spire.PDF、Spire.DataExport、Spire.PDFViewer、Spire.DocViewer等库。使用Spire.Office,您可以在同一个项目中使用Spire.Doc、Spire.Presention和Spire.Xls的库。
发布于 2020-01-22 13:49:33
清除“dependentAssembly”部分,该部分完全引用“app.config”文件中的Spire Dlls。这才是对我有用的。
https://stackoverflow.com/questions/24618013
复制相似问题