There are two common ways to install local .nupkg nuget package in Visual Studio.
Solution 1:
Step1: Note down path of your local NUGET package
Step2: Open NUGET manager by right click on project and click setting wheel as highlighted in below image
Step3: Click on Add button to add new NUGET source for VS
Step4: Add name and path of your local NUGET package to add it as a source in VS and click on update button
Step5: newly added local path will be available as a source
Step6: Click on package source and choose your newly added NUGET package source as highlighted in below image
Step7: Now local NUGET package will be available under Browse tab in Manage NUGET Package window
Solution 2:
You can also use the Package Manager Console and invoke the Install-Package
by specifying the path to the directory that contains the package file in the -Source
parameter:
Install-Package SomePackage -Source C:\PathToThePackageDir\
Thanks
LikeLike