I am trying to download JSON.NET from NuGet.
Is it available? What's the correct command?
2 Answers
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.
6 Comments
parsley72
Will this be saved into the Visual Studio solution so anyone else opening it will get the same package installed?
Mateo
Yes. It will be stored in a packages folder within the solution's directory structure.
Rickard B.
I can't get this to work with visual studio express 2008, is there another way?
Mateo
@RickardB. yes and no. Since the express versions of Visual Studio don't allow for extensions you will have to use the command line version of NuGet found at nuget.codeplex.com. One caveat with this method is the fact that your project will need to be linked to the dependency you retrieve from the NuGet servers.
Rickard B.
@Mateo, Thank you for the answer. I assumed that might be the case, so i installed VS 2013 community edition instead. Works like a charm!
|
