.NET CLI and frameworks should use the latest version of JSON.NET
See original GitHub issueWe should be using the latest version of JSON.NET across ASP.NET and .NET Core. This is required for RC2
Steps to reproduce
Create an ASP.NET Core Web Application Look at Newtonsoft.Json version in project.lock.json
Expected behavior
"Microsoft.DotNet.ProjectModel/1.0.0-rc2-002446": {
"type": "package",
"dependencies": {
"Microsoft.CSharp": "4.0.1-rc2-24018",
"Microsoft.Extensions.DependencyModel": "1.0.0-rc2-002446",
"Microsoft.Extensions.FileSystemGlobbing": "1.0.0-rc2-20459",
"Newtonsoft.Json": "8.0.x",
}
Microsoft.Extensions.DependencyModel also has 7.0.1 version of JSON.NET
Actual behavior
"Microsoft.DotNet.ProjectModel/1.0.0-rc2-002446": {
"type": "package",
"dependencies": {
"Microsoft.CSharp": "4.0.1-rc2-24018",
"Microsoft.Extensions.DependencyModel": "1.0.0-rc2-002446",
"Microsoft.Extensions.FileSystemGlobbing": "1.0.0-rc2-20459",
"Newtonsoft.Json": "7.0.1",
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc2-002392)
Product Information: Version: 1.0.0-rc2-002392 Commit Sha: 880dcf2fc8
Runtime Environment: OS Name: Windows OS Version: 6.3.9600 OS Platform: Windows RID: win81-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
.NET CLI and frameworks should use the latest version of ...
We should be using the latest version of JSON.NET across ASP.NET and .NET Core. This is required for RC2 Steps to reproduce Create...
Read more >global.json overview - .NET CLI
The global.json file allows you to define which .NET SDK version is used when you run .NET CLI commands. Selecting the .NET SDK...
Read more >Select which .NET version to use
NET CLI must choose an SDK version for every dotnet command. ... The "use latest" policy means you only use global.json to specify...
Read more >Json.NET - Newtonsoft
NET object with Json.NET's powerful JSON serializer. LINQ to JSON. Create, parse, query and modify JSON using Json.NET's JObject, JArray and JValue objects ......
Read more >How to figure out which Newtonsoft.JSON (Json.NET) ...
NET Framework app and reference a NuGet package with a lib/net*/ subfolder, it will choose the version of the highest possible subfolder.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI there is a .NET CLI version of Json.NET - https://github.com/JamesNK/Newtonsoft.Json/compare/master...dotnet-cli - but I can’t put in on NuGet because the RC2 packages aren’t on NuGet.
We are not directly depending on JSON.NET anymore.