Avatar ·

Error "The located assembly's manifest definition does not match the assembly reference" in C#

Hi everyone! I'm new to C# and encountered an error that appears when compiling or running a project: "The located assembly's manifest definition does not match the assembly reference" I have a solution with several projects. In one project (MyApp) I use the Newtonsoft.Json library version 12.0.3. In another project (MyLibrary) I also use Newtonsoft.Json, but version 11.0.1. Everything builds fine, but when running, this error appears. Here's example code: ```csharp // MyApp.csproj // MyLibrary.csproj ``` The error itself looks like this: ``` Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyTok