I have an assembly called SharedUtllities. It references an older version of Telerik.Documents. I reference SharedUtllities from JobsCore. I also reference the lastes version of Telerik.Documents in JobsCore. It compliles okay but, when I run it, I get a runtime error when the program hits SharedUtllities ru = new SharedUtllities(). The error message is that it cannot find the older version of Telerik.Documents that I reference in SharedUtilities.
I cannot update the library versions used in SharedUtility but I can recompile it. I tried using Fody and tried using VS to include the old version in the exe but that didn’t work. I tried to reference the old version as well as the new version got errors galore. I also tried to use binding redirects.
So SharedUtilities references older version of Telerik.Documents. The build does not copy any Telerik dlls.
JobsCore references SharedUtilites.dll. Running JobsCore throws an error because it can’t find the old version of Telerik.Documents.
I can’t reference the old version and the current version.
Here is the specific runtime error:
System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'Telerik.Documents.Spreadsheet, Version=2022.2.428.20, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. The system cannot find the file specified.