azure-functions-eventgrid-extension icon indicating copy to clipboard operation
azure-functions-eventgrid-extension copied to clipboard

Does not support Newtonsoft.json 9.0.1+

Open watashiSHUN opened this issue 6 years ago • 1 comments

{
  "frameworks": {
    "net46": {
      "dependencies": {
        "Microsoft.Azure.Devices": "1.5.1"
      }
    }
  }
}

with above project.json which restore Newtonsoft.json 10.0.3, we will get a

[Error] Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexingException : Error indexing method 'Functions.EventGrid-CSharp' ---> System.InvalidOperationException : Can't bind EventGridTriggerAttribute to type 'Newtonsoft.Json.Linq.JObject'.

as a workaround, add an explicit reference to Newtonsoft.json 9.0.1:

"dependencies": {
    "Microsoft.Azure.Devices": "1.5.1",
    "Newtonsoft.json 9.0.1"
}

watashiSHUN avatar Mar 16 '18 01:03 watashiSHUN