question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET CLI and frameworks should use the latest version of JSON.NET

See original GitHub issue

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 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:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
JamesNKcommented, Apr 29, 2016

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.

0reactions
livarcocccommented, Nov 11, 2016

We are not directly depending on JSON.NET anymore.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found