the_drow
the_drow

Reputation: 19181

How to install JSON.NET using NuGet?

I am trying to download JSON.NET from NuGet.
Is it available? What's the correct command?

Upvotes: 49

Views: 108991

Answers (2)

Abdus Samad
Abdus Samad

Reputation: 54

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

enter image description here

Upvotes: 2

Mateo
Mateo

Reputation: 1960

You can do this a couple of ways.

Via the "Solution Explorer"

  1. Simply right-click the "References" folder and select "Manage NuGet Packages..."
  2. Once that window comes up click on the option labeled "Online" in the left most part of the dialog.
  3. Then in the search bar in the upper right type "json.net"
  4. Click "Install" and you're done.

Via the "Package Manager Console"

  1. Open the console. "View" > "Other Windows" > "Package Manager Console"
  2. Then type the following:
    Install-Package Newtonsoft.Json

For more info on how to use the "Package Manager Console" check out the nuget docs.

Upvotes: 102

Related Questions