I am following the MVC tutorial, I installed PagedList package, and I cannot use the PagedList reference in the controller.
The type or namespace name 'PagedList' could not be found (are you missing a using directive or an assembly reference?).
First sorry for my terrible English. In my case, I use the MVC5 in Visual Studio Community 2015 and I solved the problem this way:
First I delete the cache of Visual Studio and NuGet cache:
After I use the package manager console to remove PagedList.MVC, then remove PagedList and then re-install them again like so:
I holpe that help
Include
using PagedList;
using PagedList.Mvc;
in the pgm and run
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With