Getting package error from Microsoft.Azure.Functions.Worker.Sdk having hard dependency on Newtonsoft.Json v10.0.2

Navaneethan Balakrishnan 0 Reputation points
2025-08-06T13:08:24.59+00:00

I am getting the below nuget feed error when I use Microsoft.Azure.Functions.Worker.Sdk for my azure functions.

The feed - lists package 'Newtonsoft.Json.10.0.2' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again.

10.0.2 is a vulnerable version and I cannot use it for sure. I tried all the solutions such as forcing the package in csproj file to 13.0.3, setting PrivateAssets, ExcludeAssets, clearing nuget cache...

But nothing helps. I am using .NET8.0 and hence only Azure functions v4 is possible. Downgrading the newtonsoft also not possible as other package depends on version >13.0.1

Can anyone help me on this please.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.