Showing posts with label Package Manager. Show all posts
Showing posts with label Package Manager. Show all posts

Tuesday, April 17, 2018

How do you use Package Manager to install packages?

If you need to download, install, upgrade, configure and remove computer programs for a operating system in a consistent manner then Package Manager is the right tool you need. It has all the tools you need. Package Manager uses Windows Power Shell commandlets.

If you have Visual Studio 2017 Community or any of the newer versions, it can be invoked from the View Menu after launching Visual Studio as shown.


PM_0
When you click on Package Manager Console, the Console opens inside visual studio pane as shown.


You should use 'help' to find what all you can do with it. Here is help just for the install task.

That's all.

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