title: 'Could not load file or assembly' exception when running as a console app
body: <p>I have a new .NET Core 2.0 console app. Whenever I try to add a NuGet package, say Newtonsoft.Json for example I get the following exception when the program is started:</p>
  <blockquote>
  <p>System.IO.FileLoadException: 'Could not load file or assembly 'System.Threading, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'</p>
  </blockquote>
  <p>This somehow happens on <strong>System.Console.ReadLine()</strong> and when I remove the Newtonsoft.Json package, everything works again. Now, Newtonsoft.Json was just an example, I can add System.Data.SqlClient and the same thing happens. Sometimes a different assembly could not be loaded than the one mentioned in the exception above.</p>
  <p>I have included the project. Also, I can easily reproduce this problem as I have countless times created new .NET Core 2.0 console apps to see if my project was corrupt somehow.</p>
  <p>My project (last run on Visual Studio Preview): <a href="https://ufile.io/yp9xd" rel="nofollow noreferrer">https://ufile.io/yp9xd</a></p>
  <p>Edit 1: I reinstalled Visual Studio 2017 and now I'm only running non-preview. I also reinstalled .NET Core 2.0 and cleared out the NuGet Cache. All this to no prevail. The same result continues to mock me.</p>
  <p>Edit 2: I have located the source of the problem. Cross-reference to: <a href="https://github.com/JamesNK/Newtonsoft.Json/issues/1423" rel="nofollow noreferrer">https://github.com/JamesNK/Newtonsoft.Json/issues/1423</a></p>