Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install JSON.NET using NuGet?

Tags:

nuget

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

like image 817
the_drow Avatar asked Dec 14 '10 22:12

the_drow


People also ask

How do I manually install a NuGet package?

Menu Tools → Options → Package Manager Click OK. Drop your NuGet package files in that folder. Go to your Project in Solution Explorer, right click and select "Manage NuGet Packages". Select your new package source.

What is Newtonsoft JSON NuGet?

Json.NET is a popular high-performance JSON framework for .NET. Product. Versions. .NET. net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows.


1 Answers

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.

like image 154
Mateo Avatar answered Sep 27 '22 22:09

Mateo