Visual-studio – How to install a NuGet package .nupkg file locally

nugetvisual studio

I have some .nupkg files from a C# book. How can I install them?

Can't see my packages

Best Answer

Menu ToolsOptionsPackage Manager

Enter image description here

Give a name and folder location. Click OK. Drop your NuGet package files in that folder.

Go to your Project in Solution Explorer, right click and select "Manage NuGet Packages". Select your new package source.

Enter image description here

Here is the documentation.