Trying to install GraphQL and getting red error in Console

  • Thread starter Thread starter Naomi N
  • Start date Start date
N

Naomi N

Guest
Hi,

I apologize if this is not the right forum for my question but I'm not sure where exactly to ask (I did add a comment to the article). I'm trying to follow this interesting article I'm reading right now:

Building and consuming GraphQL API in ASP.NET Core 3.1 - Simple Talk

I have Visual Studio 2019 16.6.4 right now. When I tried to install following the article I got an error about NewtonSoft.JSON being not compatible with netcore 3.1 (the second install did install correctly).

This is the exact error (I re-tried it now again after I've installed version 16.6.4):

Install-Package : NU1202: Package Newtonsoft.Json 10.0.3 is not compatible with netcoreapp3.1
(.NETCoreApp,Version=v3.1). Package Newtonsoft.Json 10.0.3 does not support any target frameworks.
At line:1 char:1
+ Install-Package GraphQL
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackag
eCommand

Install-Package : Package restore failed. Rolling back package changes for 'MvcMovie'.
At line:1 char:1
+ Install-Package GraphQL
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackag
eCommand



I did a very quick Google Search, but it seemed to refer to different package. What am I supposed to do?

Thanks in advance.



For every expert, there is an equal and opposite expert. - Becker's Law


My blog


My TechNet articles

Continue reading...
 
Back
Top