Showing posts with label NuGet. Show all posts
Showing posts with label NuGet. Show all posts

Thursday, July 16, 2015

How do you install JSON.NET?

The installation of JSON.net is very easy. There are three ways you can do it. When you hit the download button on this site you will see the details.

InstallJsonNet.png

Since I will be using the Visual Studio IDE. I will show how to install it by invoking the Packet Manager console.

Launch Visual Studio 2013 Community edition (this is a free version).

Create a new C# project with the name JsonRead. This creates the folder JsonRead in Solution Explorer and the C# file, JsonRead.cs as shown.

JsonRead.png

From Tools | NuGet Packet Manager click on the Packet Manager Console as shown.


PacketManagerConsole.png
The Packet Manager Console pane opens as shown. I have already added the package Newtonsoft.Net package to another project called JsonWrite,

PacketManagerConsolePane.png

Type in the following at the PM> prompt as shown

PM>Install-package Newtonsoft.Json
Json.Net gets added to the project JsonRead as shown in the Solution Explorer

JsonNetAdded.png

Newtonsoft.Net gets added to the project as shown.


JsonReadwithJsonNet.png
 

Wednesday, August 27, 2014

How do you install NuGet Package Manager?

NuGet is the package manager for Microsoft development platform including Microsoft .NET. NuGet gallery at nuget.org is the central package repository.

NuGet Package Manager is available for the following clients:
  • For Visual Studio 2010, 2012 and 2013 through Visual Studio Extension Gallery that you can access from Tools|Extensions and Upgrades... in Visual Studio IDE.
  • For WebMatrix 3 in the WebMatrix Extension
  • Command-line: http://nuget.org/nuget.exe
This is how you access in Visual Studio 2013 Express for Windows.



How do you manage packages? Read here for details:
http://msdn.microsoft.com/en-us/magazine/hh547106.aspx

How do you install Json.Net from NuGet Packet Manager?
Read here:
http://hodentekhelp.blogspot.com/2015/07/how-do-you-install-jsonnet.html