2016-10-08 22:12 阅读 80

无法在visual studio 2015中安装memcached

I am trying install memcached in visual studio in a PHP project

I am running the following command in the Package Manager Console :

PM> Install-Package EnyimMemcached

I am getting the error "Install failed. Rolling back... "

The full error:

Attempting to gather dependency information for package 'EnyimMemcached.2.16.0' with respect to project ', targeting 'Unsupported,Version=v0.0'

Attempting to resolve dependencies for package 'EnyimMemcached.2.16.0' with DependencyBehavior 'Lowest'

Resolving actions to install package 'EnyimMemcached.2.16.0'

Resolved actions to install package 'EnyimMemcached.2.16.0'

Install failed. Rolling back...

Package 'EnyimMemcached.2.16.0' does not exist in project 'project'

Package 'EnyimMemcached.2.16.0' does not exist in folder 'C: \packages'

Install-Package : Could not install package 'EnyimMemcached 2.16.0'. You are

trying to install this package into a project that targets 'Unsupp orted,Version=v0.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

At line:1 char:16

  • Install-Package <<<< EnyimMemcached

    • CategoryInfo : NotSpecified: (:) [Install-Package], Exception

    • FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

I have tried different php version to see if the issue is with the version and still getting the same error

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    duandaodao6951 duandaodao6951 2016-10-10 07:42

    “EnyimMemcached” need .NET Framework 3.5 or later version to use. Please refer to here for details: If you install “EnyimMemcached” to any projects which target to previous version of .NET Framework that before 3.5, you will get the same error.

    Since PHP proejct isn’t a .NET Framework type project, you could not install “EnyimMemcached” to a PHP project. If you want to use “memcached” in a PHP project, you need to install and configuration based on below document that from PHP site.

    点赞 评论 复制链接分享