[英]Why is there a CS0433 error for Newtonsoft.Json.JsonConvert in my project?
In my ASP.NET MVC project, the following error occurs:在我的 ASP.NET MVC 项目中,出现以下错误:
Error CS0433 The type "JsonConvert" exists both in "Newtonsoft.Json, Version = 12.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed", and in "Newtonsoft.Json, Version = 6.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed" Error CS0433 The type "JsonConvert" exists both in "Newtonsoft.Json, Version = 12.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed", and in "Newtonsoft.Json, Version = 6.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed "
I checked the entire project and did not find in it a link or any mention of Newtonsoft.Json, Version = 6.0.0.0
.我检查了整个项目,并没有在其中找到链接或任何提及Newtonsoft.Json, Version = 6.0.0.0
。 I tried to remove Newtonsoft.Json, Version = 6.0.0.0
and 12.0.0.0
, then installed the latest version, but the error does not go away.我试图删除Newtonsoft.Json, Version = 6.0.0.0
和12.0.0.0
,然后安装最新版本,但错误并没有 go 消失。 Please tell me what this may be connected with.请告诉我这可能与什么有关。 I am completely at a loss.我完全不知所措。
Maybe you have linked another NuGet package which requires Newtonsoft.Json 6.0.0.0.也许您已经链接了另一个需要 Newtonsoft.Json 6.0.0.0 的 NuGet package。 You might have a look at your dependencies for each NuGet package or try recreating the whole solution.您可能会查看每个 NuGet package 的依赖项或尝试重新创建整个解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.