简体   繁体   English

PagedList.Mvc 4.5.0 不会安装,nuget 管理器不工作 VS2013

[英]PagedList.Mvc 4.5.0 won't install, nuget manager not working VS2013

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

Nuget keeps showing the message: "Retrieving information...". Nuget 不断显示消息:“正在检索信息...”。

  • I tried to clean nuget cache,我试图清理 nuget 缓存,
  • reinstalling nuget package manager,重新安装nuget包管理器,
  • I downloaded the package and tried to install it offline我下载了软件包并尝试离线安装

Any ideas?有任何想法吗?

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.删除解决方案文件夹、 binobj文件夹下的.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM