Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4108

Microsoft.AspNetCore.Mvc.NewtonsoftJson 6.0.2 is not compatible with net5.0

$
0
0

I am using Visual Studio 2019 on a Mac, trying to start a REST API project.

Immediately got stuck when trying to install NewtonsoftJson 6.0.2

I was just following a tutorial, and version of NewtonsoftJson that was being using was 3.1.9.

Firstly - Is there a way to install 6.0.2?

Secondly - If 6.0.2 cannot be installed, is there a way to install the older version so I can proceed with this tutorial?

Edit

I added Newtonsoft.Json 13.0.1 per suggestions in the comments, but I am still getting the red line beneath the text below that reads AddNewtonsoftJson():

services.AddControllersWithViews().AddNewtonsoftJson();

Viewing all articles
Browse latest Browse all 4108


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>