could not install package Facebook 6.4.2

末鹿安然 提交于 2020-02-03 05:15:27

问题


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

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 !!


回答1:


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.



来源:https://stackoverflow.com/questions/17072546/could-not-install-package-facebook-6-4-2

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