So I've installed FreeSpire.Doc (5.5.0), FreeSpire.XLS (7.9.0) and FreeSpire.Presentation (2.1.0) from nuget to my project. Since these libraries depend on Spire.Pdf of different versions I've been attempting to get things working with assembly redirects:
- Code: Select all
<dependentAssembly>
<assemblyIdentity name="Spire.Pdf" publicKeyToken="663f351905198cb3" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.6.230.55040" newVersion="3.6.230.55040" />
</dependentAssembly>
and I've also tried something like, manually copying the dlls to a folder.
- Code: Select all
<dependentAssembly>
<assemblyIdentity name="Spire.Pdf" publicKeyToken="663f351905198cb3" />
<codeBase version="3.4.108.54040" href="..\lib\SpirePdf3.4.108.54040\Spire.Pdf.dll" />
<codeBase version="3.6.230.55040" href="..\lib\SpirePdf3.6.230.55040\Spire.Pdf.dll" />
</dependentAssembly>
Sadly, none of these fully work. I get doc to work but then XLS will fail, or sometimes the other way around.
Ideally I'm hoping for a solution where I can use nuget and only edit the config should there be updates, rather than having to copy libraries forth and back.
Does anyone know a way of achieving this?