It looks like Azure Insights plugin still uses the older version of newtonsoft(6.0.8) which is not consistent with other plugins which are using newtonsoft (9.0.1). Is it possible to consolidate the newtonsoft reference across the Azure plugins
If I'm understanding this issue correctly, my team is currently blocked by the same problem. The latest 0.15.0-preview version of the Microsoft.Azure.Insights NuGet package has a dependency on Newtonsoft.Json with a maximum version of 7.0.0 for the .NET Framework target, which means it cannot be installed along with other libraries in our project which depend on Newtonsoft.Json 9.0.0 or higher. The Newtonsoft.Json dependency version restrictions need to be relaxed so that Microsoft.Azure.Insights is compatible with current packages.
There is also a issue with Microsoft.Rest.ClientRuntime referencing v6 for net45 but not the other two frameworks, they reference v9. I created a issue log on their repo for this.
@shahabhijeet Is there any other information you guys are looking for. I would be happy to provide any information that would help resolve this. As @nathandavidson pointed out it would be really helpful if we could relax the constraint
This problem is only getting worse as Newtonsoft.Json is now at version 10 and now no frameworks support the latest.
I agree with @AzureBinkie, the problem is getting worse. Seems like every Azure Management nuget package relies on a different version of Newtonsoft.Json.
Can you change the package references to be a range, or accept all newtonsoft > 6?
This is still tagged as MoreInfoFromCustomer, what extra info do you need? This is blocking upgrade to newer azure client packages.
@shahabhijeet no response?
Microsoft Team, please upgrade Newtonsoft.Json version for Microsoft.Azure.Insights.
There are more than 200 nuget packages in our solution and restriction Newtonsoft.Json < 7.0.0 kills the Microsoft.Azure.Insights package for our solution.
Moreover, no one package uses Newtonsoft.Json version less than 7.0.0
The proper solution is to abandon Newtonsoft.Json and use System.Runtime.Serialization.Json. No library has given me as much deployment troubles as Newtonsoft.Json. I've created a new ticket #4380 where I've added other links describing the situation.
The Azure SDK is planning to remove references to JSON.NET in upcoming releases to avoid pinning dependencies like this. It will take time to get through all the different places where this dependency exists but over time, the pain should go away. We want people to be able to use whatever JSON.NET version they want without the Azure SDK causing problems.
You can get a glimpse of the first wave of libraries doing this here: https://azure.microsoft.com/en-in/blog/previewing-azure-sdks-following-new-azure-sdk-api-standards/
Most helpful comment
This is still tagged as MoreInfoFromCustomer, what extra info do you need? This is blocking upgrade to newer azure client packages.