如何解决此问题无法加载文件或程序集'newtonsoft.json? [英] How do I solve this issue could not load file or assembly 'newtonsoft.json?

查看:600
本文介绍了如何解决此问题无法加载文件或程序集'newtonsoft.json?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法加载文件或程序集Newtonsoft.Json,Version = 4.5.0.0,Culture = neutral,PublicKeyToken = 30ad4fe6b2a6aeed或其中一个依赖项。系统找不到指定的文件。



我尝试过:



我试图恢复它而失败了。因为我的解决方案已安装的版本是< package id =Newtonsoft.Jsonversion =5.0.6targetframework =net45>

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

What I have tried:

I tried to restore it and it failed. as the already installed version at my solution was <package id="Newtonsoft.Json" version="5.0.6" targetframework="net45">

推荐答案

您需要正确的版本,看起来您的代码需要4.5,但您的软件包是5.0.6。删除块包并安装具有正确版本的一个,googlenuget newtonsoftjson 4.5以找到执行该操作的块命令
You need the correct version, it looks like your code needs 4.5 but your package is 5.0.6. Remove the nugget package and install the one with the correct version, google "nuget newtonsoftjson 4.5" to find the nugget command to do that


这篇关于如何解决此问题无法加载文件或程序集'newtonsoft.json?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆