Install-Package : Unable to find package 'WebActivator'

丶灬走出姿态 提交于 2019-11-30 00:52:11

问题


I have Visual Studio 2012 Express for Web. My Steps -Create a New ASP .NET MVC 4 application -choose basic template -go to Package Manager Console -try to install WebActivator

PM> Install-Package WebActivator

and i get the following error

How i can resolve this and install WebActivator package?


回答1:


In my case, I could not install any package and got a similar error. The issue was solved as I unchecked the "Microsoft and .NET" under "Machine-wide package source":

I hope this can be help someone.




回答2:


So easy

https://www.nuget.org/packages/WebActivator

Need point version of webActivator!!!

PM> Install-Package WebActivator -Version 1.5.3 



回答3:


I got a similar problem with another package in Visual Studio 2013, I cleared the NuGet package cache with the option "Clear Package Cache" and it works now.




回答4:


Change source according to visual studio version

NuGet feed v3 (VS 2015 / NuGet v3.x): https://api.nuget.org/v3/index.json
NuGet feed v2 (VS 2013 and earlier / NuGet 2.x): https://www.nuget.org/api/v2




回答5:


I just ran into this myself. The reference to WebActivatorEx didn't work. You'll have to do it manually. The file is in the packages directory.



来源:https://stackoverflow.com/questions/18059464/install-package-unable-to-find-package-webactivator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!