1
votes

I tried to install PagedList.Mvc in Nuget Package manager console by

PM > Install-Package PagedList.Mvc

But geting error like below:

Install-Package : Unable to find package 'PagedList.Mvc'.
At line:1 char:1
+ Install-Package PagedList.Mvc + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

So I installed through Manage Nuget packages for solution from online.

But the problem is I need to install from online for every projects through 'Manage Nuget packages for solution'.
Is there any way to get installed permanently in reference folder for every projects that I created?

2

2 Answers

2
votes

Is there any way to get installed permanently in reference folder for every projects that i created..?

Install it for solution and so if there is multiple project present, NuGet UI will show that and you can check/select the projects for which you want to install it.

Later if you create another project under that solution, you will have to install it separately.

I am not that sure what you exactly mean by permanently?

To install NuGet package use the UI. Right click on solution and select Manage NuGet package for solution. That will bring the UI. Click on Browse tab -> select the package and Go on from there.

0
votes

Write in package manager console

PM> Install-Package PagedList.Mvc

link here https://www.nuget.org/packages/PagedList.Mvc/