In this article I will explain with an example, how to install Nuget package in Class Library project using Visual Studio.
This method will work in following versions 2013, 2015, 2017, 2019, 2022.and later.
 
 
Installing Nuget package
In order to install Nuget package using Visual Studio.
1. Right Click the Project in Solution Explorer and click Manage NuGet Packages from the Context Menu.
Install Nuget Package in Class Library project using Visual Studio
 
2. Now you will need to look for the Nuget package you want to install. Once it is found, you need to click the Install Button.
Install Nuget Package in Class Library project using Visual Studio
 
3. Then, click on Accept.
Install Nuget Package in Class Library project using Visual Studio
 
Once the Nuget package successfully installed, it will be available in the installed Packages.
Install Nuget Package in Class Library project using Visual Studio