[英]PagedList.Mvc 4.5.0 won't install, nuget manager not working VS2013
Thanks for sharing the suggestion and to improve this case, I have added your answer to help other community members handle similar issue.感谢您分享建议并改进此案例,我添加了您的答案以帮助其他社区成员处理类似问题。
Solution解决方案
Install PagedList
nuget package directly and the problem will go away.直接安装
PagedList
nuget 包,问题就会消失。
Further , and add some tips for some confusion,此外,并添加一些混淆的提示,
Actually , when you install PagedList.MVC 4.5.0
, it will also install the dependency PagedList 1.17
at the same time.实际上,当您安装
PagedList.MVC 4.5.0
,它也会同时安装依赖项PagedList 1.17
。 And in my side, I did not face the same issue when installing .在我这边,我在安装 .
So maybe your nuget.config
has some issues or you have added defaultProxy
on web.config
file.所以也许你的
nuget.config
有一些问题,或者你在web.config
文件上添加了defaultProxy
。
Suggestion to make a clean environment营造干净环境的建议
1) close VS, delete C:\\Users\\xxx(current user)\\AppData\\Roaming\\NuGet\\NuGet.Config
file, 1)关闭VS,删除
C:\\Users\\xxx(current user)\\AppData\\Roaming\\NuGet\\NuGet.Config
文件,
delete .vs
hidden folder under the solution folder, bin
and obj
folder.删除解决方案文件夹、
bin
和obj
文件夹下的.vs
隐藏文件夹。
then restart VS IDE.然后重新启动VS IDE。
2) check on your mvc project, and delete defaultProxy on web.config
file. 2)检查您的 mvc 项目,并删除
web.config
文件中的defaultProxy 。
Then , try to install this again.然后,尝试再次安装它。
Besides , you could try the suggestions or try the solution above which can solve your issue.此外,您可以尝试建议或尝试上述解决方案,以解决您的问题。 And if the suggestions make no sense, try the solution directly.
如果这些建议没有意义,请直接尝试解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.