已安装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.
这篇关于已安装PagedList程序包,“缺少程序集参考”控制器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文