Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Does not support Newtonsoft.json 9.0.1+ #28

Closed
watashiSHUN opened this issue Mar 16, 2018 · 1 comment
Closed

Does not support Newtonsoft.json 9.0.1+ #28

watashiSHUN opened this issue Mar 16, 2018 · 1 comment
Labels

Comments

@watashiSHUN
Copy link
Contributor

{
  "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 added a commit to watashiSHUN/azure-functions-eventing-extension that referenced this issue Apr 11, 2018
watashiSHUN added a commit to watashiSHUN/azure-functions-eventing-extension that referenced this issue Apr 16, 2018
watashiSHUN added a commit to watashiSHUN/azure-functions-eventing-extension that referenced this issue Apr 16, 2018
@watashiSHUN
Copy link
Contributor Author

another possible solution is to not use JObject in the function body, using POCO or string

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants