Getting package error from Microsoft.Azure.Functions.Worker.Sdk having hard dependency on Newtonsoft.Json v10.0.2
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.