question

PAULFALLOWS-4945 avatar image
0 Votes"
PAULFALLOWS-4945 asked SamaraSoucy-MSFT commented

Azure Function dependencies

Hi

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?

Thanks
Paul

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamaraSoucy-MSFT avatar image
0 Votes"
SamaraSoucy-MSFT answered SamaraSoucy-MSFT commented

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.

112758-2021-07-07-22-41-46-principal-microsoft-azure.png

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.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PAULFALLOWS-4945

I wanted to check in with you- are you still having issues with dependencies or has this been resolved?

0 Votes 0 ·