已安装PagedList软件包,“缺少程序集参考"控制器错误 [英] PagedList package installed, "missing assembly reference" error in controller
本文介绍了已安装PagedList软件包,“缺少程序集参考"控制器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在关注MVC教程,安装了PagedList程序包,但无法在控制器中使用PagedList引用.
I am following the MVC tutorial, I installed PagedList package, and I cannot use the PagedList reference in the controller.
找不到类型或名称空间名称'PagedList'(您是否缺少using指令或程序集引用?).
The type or namespace name 'PagedList' could not be found (are you missing a using directive or an assembly reference?).
推荐答案
检查您的引用以查看是否有对PagedList程序集的引用.
Check your references to see if there is a reference to the PagedList assembly.
如果没有:尝试重新安装软件包
If there isn't: Try to reinstall the package
有参考文献:检查文件是否确实存在于指定位置.
If there is a reference: Check if the file actually exists on the location specified.