doupian9490 2016-10-08 22:12
浏览 94

无法在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 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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥18 深度学习tensorflow1,ssdv1,coco数据集训练一个模型
  • ¥100 关于注册表摄像头和麦克风的问题
  • ¥30 代码本地运行正常,但是TOMCAT部署时闪退
  • ¥15 关于#python#的问题
  • ¥15 主机可以ping通路由器但是连不上网怎么办
  • ¥15 数据库一张以时间排好序的表中,找出多次相邻的那些行
  • ¥50 关于DynamoRIO处理多线程程序时候的问题
  • ¥15 kubeadm部署k8s出错
  • ¥15 Abaqus打不开cae文件怎么办?
  • ¥15 小程序准备上线,软件开发公司需要提供哪些资料给甲方