How to install JSON.NET using NuGet?
I am trying to download JSON.NET from NuGet.
Is it available? What's the correct command?
Solution 1:
You can do this a couple of ways.
Via the "Solution Explorer"
- Simply right-click the "References" folder and select "Manage NuGet Packages..."
- Once that window comes up click on the option labeled "Online" in the left most part of the dialog.
- Then in the search bar in the upper right type "json.net"
- Click "Install" and you're done.
Via the "Package Manager Console"
- Open the console. "View" > "Other Windows" > "Package Manager Console"
- Then type the following:
Install-Package Newtonsoft.Json
For more info on how to use the "Package Manager Console" check out the nuget docs.
Solution 2:
I have Had the same issue and the only Solution i found was open Package manager> Select Microsoft and .Net as Package Source and You will install it..