找不到图书馆的文件,但我有一个更新版本

File not found for a library, but I have a newer version of it

NuGet 中的一个库依赖于 Newtonsoft.Json version 7.0.1。这是我的桌面应用程序 packages.config 中的内容:

<?xml version="1.0" encoding="utf-8"?>
<packages>
  ////...............
  <package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
</packages>

但是,在运行时我得到这个错误:

An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll but was not handled in user code

Additional information: Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

为什么 7.0.0?我该如何解决这个问题?

Nuget 控制台:

PM> Install-Package Newtonsoft.Json
'Newtonsoft.Json 7.0.1' already installed.
AzureDocumentDbBuddy already has a reference to 'Newtonsoft.Json 7.0.1'.

首先卸载安装的版本:

Uninstall-Package Newtonsoft.Json -Force

然后:

Install-Package Newtonsoft.Json -Version 7.0.0.0