简体   繁体   中英

Install-Package : Unable to find package 'WebActivator'

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?

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.

So easy

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

Need point version of webActivator!!!

PM> Install-Package WebActivator -Version 1.5.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.

在此输入图像描述

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

在此输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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