Tag Archives: Nuget

Book Review: “Nuget 2 Essentials” from Packt Publisher

In this post, I am going to review a book Nuget 2 Essentials from Packt Publisher.


Recently I have gone through a book “Nuget to Essentials” and as a developer, I have found it to be a concise, interesting and very useful introduction to Nuget. Authors Damir Arh and Dejan Dakic have covered Nuget Package Manager and related topics very brilliantly.

It is so easy to read and the information is very interesting that each time you turn a page,
you want to learn and know more about Nuget! Every topic in this book is covered with examples. You can download the example code files for all Packt books you have purchased from your account. Since All the examples are written in C# language, only basic knowledge of the language is required to start reading this book.

Here is a list of the positive things, I found about the book:

  • Doesn’t require any prior knowledge about NuGet
  • Example source codes are written in C#
  • All the concepts on real-world examples step by step with a section that explain you the whole process each time in every topic
  • Very comprehensive writing. Authors explained almost everything which makes things clear!
  • Very informative, even if you are a beginner, an intermediate or an advanced user
  • Covers all aspects of using NuGet, from the basics to the advanced scenarios of creating packages and hosting an internal server

After you’ve read the book, you know how to easily find and refer third-party libraries from your projects, create packages from your class libraries for others to use and publish them to the official NuGet gallery and host your own internal NuGet server and publish packages to it.

One thing I have noticed about Packt Publisher is that they offer eBook versions of every book published with PDF and ePub files available, which is very great and added advantage.

Since everything is covered related to Nuget Package Manager along with simple and easily understandable examples, I strongly recommended this book to every .NET developer who wants to learn more about NuGet. A must have ‘Essential‘ book.

Book Details

Language : English
Paperback : 116 pages
Release Date : November 2013
ISBN / ISBN 13 : 178216586X / 9781782165866
Author(s) : Damir Arh, Dejan Dakic
Topics and Technologies : All Books, Open Source


Win Free Copies of the new book NuGet 2 Essentials from Packt Publishing

I recently came across a new book NuGet 2 Essentials from Packt Publishing. You would be pleased to know that I have teamed up with Packt Publishing to organize a Giveaway of the book.

And three lucky winners stand a chance to win 3 digital copies of this book. Keep reading to find out how you can be one of the Lucky Winners.


  • Install NuGet in all supported versions of Visual Studio
  • Use NuGet with source control and build servers
  • Create a NuGet package for your own class library
  • Publish your package to the official NuGet gallery
  • Create packages with multi-platform and multi-language support
  • Automatically configure target projects from the packages you create
  • Include custom install and uninstall scripts in your packages
  • Support debugging of your packaged libraries
  • Install your own internal NuGet server
  • Configure NuGet to use different NuGet servers

How to Enter?
All you need to do is head on over to the book page and look through the product description of the book and drop a line via the comments below this post to let us know what interests you the most about this book. It’s that simple.

Winners will get an e-copy of the Book.

The contest will close on 31st Dec 2013. Winners will be contacted by email, so be sure to use your real email address when you comment!

How to Install a NuGet Package in Visual Studio?

In this article, let’s see what is NuGet and how to install a NuGet Package in Visual Studio.

About NuGet

It is a free and open source package manager for the .NET Framework. It was formerly known as NuPack. The NuGet Gallery (nuget.org) is the central package repository used by all package authors and consumers.

When you install a package, NuGet copies all the required files to your project/solution and makes appropriate changes such as adding a reference to assembly, changing app.config or web.config file etc.

In short, You can include a Javascript file reference or add an assembly reference via NuGet Package Manager in Visual Studio. We don’t need to worry about dependent packages as it is automatically handled and included in the project by NuGet.

NuGet Package Manager Extension for Visual Studio

It is a collection of tools to automate the process of downloading, installing, upgrading, configuring, and removing packages from a Visual Studio Project/solution. It is distributed as a Visual Studio extension.

Installing NuGet Package Manager Extension

1. If the NuGet Package Manager is not installed on Visual Studio, you can install it by clicking on Tools > Extensions and Updates from the menu.

Clicking on “Extensions and Updates”, you will see following screen.

2. Select “Online” from the left hand side, you will see a list, sorted by Most popular packages. Select “NuGet Package Manager” from it and click on “Download” button to install it.

You will see following screens.

3. As show in the screen below, accept the license terms, click “Install” to continue.

Once installation is done, You will see this screen. Click on “Close” button.

4. You will be asked to restart the Visual Studio. Now you have NuGet Package Manager extension installed in Visual Studio. A small green checkbox icon is appeared against the installed extension.

More information about Nuget Package Manager extension can be found here in the visual studio gallery.

Installing NuGet Packages in Visual Studio

Basically there are 2 ways to install a NuGet Package in Visual Studio. First is via User interface window and other is via package manager console.

  • Installation via NuGet interface window

1. RIght click on your project from solution explorer and click on Manage NuGet Packages. Select the “Online” link from the left hand side and find the required package.

2. Click on “Install” button from the screen. Package manager will do all the stuff in the background for you.

2. If you see references in your project, reference for the installed package is added.

Here in this case, it’s json.NET package.

  • Installation via Package Manager Console

1. From the Tools menu, select Library Package Manager and then click Package Manager Console.

You will see following screen in Visual Studio.

2. To search a package, type a command Get-Package -ListAvailable -Filter <package name>

e.g Get-Package -ListAvailable -Filter EntityFramework

3. To install required package, type a command  Install-Package <package name>

e.g. Install-Package EntityFramework

Once installation done, you can see that reference for the package is automatically added to project.

NuGet Intro Video