Adding references using NuGet packages

Adding references using NuGet packages

Howdy Reader,

Today, we will be dealing with an easy yet handy way to deal with adding references to projects in Visual Studio.

Wikipedia says

NuGet is a free and open-source package manager, inspired from the most efficient features available in the Linux EMACS software, designed for the Microsoft development platform (formerly known as NuPack). Since its introduction in 2010, NuGet has evolved into a larger ecosystem of tools and services.

I find NuGet a very helpful & handy tool. Listing down few benefits of using it. Click To Tweet
  1. NuGet is smart enough to add assembly binding redirects when required
  2. Dependencies of a package are automatically resolved
  3. NuGet notifies you about available package updates
  4. Creating packages makes people think about component architecture (all dependencies should be packaged as well)
  5. You can get rid of binaries bloating your VCS repositories (package restore feature)

I am sure there are many more advantages of using NuGet packages.

Steps for adding DLLs or assemblies in project using NuGet:

This post has been moved to – dotnetcrunch.com

Thanks for visiting!