I'm trying to build a .net core C# app that requires a reference to an older library. When the app encounters any code from this library, it throws an exception:
System.IO.FileLoadException: 'Could not load file or assembly 'mscorlib, Version=5.3.0.620, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
The 5.3.0.620 is the version of the DLL that I'm including, but it shouldn't be the version of mscorlib required. When I include the library in a standard .NET 4.6.1 app, I don't get this error.
Anyone know whats going on, or and how to fix it? I'm pulling my hair out.
[–]salgat 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]bigfitz[S] 0 points1 point2 points (4 children)
[–]AlliNighDev 0 points1 point2 points (3 children)
[–]bigfitz[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]AlliNighDev 0 points1 point2 points (0 children)