Azure Function dependencies

PAUL FALLOWS 21 Reputation points


I am developing a number of Functions using Visual Studio. I would like to take advantage of the fixed delay retry to have different retires per function:
[FixedDelayRetry(5, "00:00:10")]

This requires Microsoft.Azure.WebJobs v2.0.23 which requires Newtonsoft.Json v11.0.2. My project is currently in .Net Framework using Microsoft.NET.Sdk.Functions v1.0.38 which has a dependency on Newtonsoft.Json v9.0.1.

Am I right in thinking that because I am using .Net Framework I can't upgrade Microsoft.NET.Sdk.Functions to v3.x?

If I upgrade Newtonsoft.Json to v11.0.2 on my project and add Microsoft.Azure.WebJobs v2.0.23 I get a package version outside of dependency constraint for NewtonsoftJson - should I be concerned about this?


Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,401 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Samara Soucy - MSFT 5,051 Reputation points

    You are correct that 1.0.38 is that last version of the SDK that supports .NET Framework. If you look at the dependencies for 1.0.38, the you can see that the Standard 2.0 version allows for Newtonsoft >= 11.0.2. This means you should be fine, but nuget is choosing the .NET Framework version, and because of that it thinks it is still locked into v9.0.1.


    The recommended path is to update to .NET Core or newer, but I understand that's not necessarily an option, which is why in the last few versions of the 1.x SDK the version was opened up.