C# 检测到Newtonsoft.Json的版本冲突。直接安装/引用Newtonsoft.Json 11.0.2(Azure功能visual studio)
我已安装最新版本的Visual Studio Enterprise 9(15.8.06)。创建了一个azure函数(C# 检测到Newtonsoft.Json的版本冲突。直接安装/引用Newtonsoft.Json 11.0.2(Azure功能visual studio),c#,visual-studio,azure,json.net,azure-functions,C#,Visual Studio,Azure,Json.net,Azure Functions,我已安装最新版本的Visual Studio Enterprise 9(15.8.06)。创建了一个azure函数(HttpTrigger),所有函数都运行良好,甚至将其发布到azure帐户。我创建了一个类型为blob trigger的新函数,出现了问题;在构建项目时,我收到以下错误消息。有人能帮忙吗 //============================ Version conflict detected for Newtonsoft.Json. Install/reference N
HttpTrigger
),所有函数都运行良好,甚至将其发布到azure帐户。我创建了一个类型为blob trigger
的新函数,出现了问题;在构建项目时,我收到以下错误消息。有人能帮忙吗
//============================
Version conflict detected for Newtonsoft.Json. Install/reference
Newtonsoft.Json 11.0.2 directly to project testfunction to resolve this issue.
testfunction -> Microsoft.Azure.WebJobs.Extensions.Storage 3.0.0 ->
Microsoft.Azure.WebJobs 3.0.0 -> Newtonsoft.Json (>= 11.0.2)
请确保依赖项是最新的 对于一个简单的v2 blob触发器,现在的包是
Microsoft.NET.Sdk.Functions 1.0.22
Microsoft.Azure.WebJobs.Extensions.Storage 3.0.0
您是否尝试过像错误消息所说的那样直接添加Newtonsoft?我尝试过安装它通过nuget请求的版本,但失败了