使用breeze运行web api 2项目时遇到错误:
Error 2 Assembly 'Breeze.ContextProvider, Version=1.6.0.0, Culture=neutral, PublicKeyToken=f6085f1a45e2ac59' uses 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
我尝试了其他版本,但仍然出错
答案 0 :(得分:1)
我得到了答案,在nuget包管理器上执行:
Uninstall-Package Newtonsoft.Json -Force
之后:Install-Package Newtonsoft.Json -Version 9.0.1