无法安装软件包Facebook 6.4.2 [英] could not install package Facebook 6.4.2

查看:284
本文介绍了无法安装软件包Facebook 6.4.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 NuGet控制台中的facebook C#sdk安装到我的 Windows Phone 8 应用程序 .NET Framework 4.0 中 但这是一个错误!详细信息如下:

I'm trying to install facebook C# sdk from NuGet Console into my windows phone 8 app, .NET framework 4.0 But it's giving an error! Details is give below :

PM> Install-Package Facebook
Successfully installed 'Facebook 6.4.2'.
Successfully uninstalled 'Facebook 6.4.2'.
Install failed. Rolling back...
Install-Package : Could not install package 'Facebook 6.4.2'. You are trying to install this package into a project that 
targets 'WindowsPhone,Version=v8.0', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Facebook
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
 + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

如果我尝试安装这个 Install-Package Facebook.Client -pre ,那么我也遇到同样的错误!有人可以帮助我吗?在此先感谢!

If i try to install this Install-Package Facebook.Client -pre then also I get the same error !!Can anyone help me out ? Thanks in advance !!

推荐答案

问题是您的nuget软件包管理器未更新.请更新您的nuget管理器,重新启动,然后重试.它应该可以正常工作.

The problem is that your nuget package manager is not updated. Please update your nuget manager, restart and then try again. It should work fine.

这篇关于无法安装软件包Facebook 6.4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆