本文介绍了安装NuGet软件包'Facebook 6.1.2'Windows 8 App时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当尝试将Facebook 6.1.2 NuGet安装到我的Windows 8应用程序中时,出现以下消息:
When trying to install the Facebook 6.1.2 NuGet into my Windows 8 application I get the following message:
PM> Install-Package Facebook
Successfully installed 'Facebook 6.1.2'.
Successfully uninstalled 'Facebook 6.1.2'.
Install failed. Rolling back...
Install-Package : Could not install package 'Facebook 6.1.2'. You are trying to install
this package into a project that targets '.NETCore,Version=v4.5', but the package does not
contain any assembly references that are compatible with that framework. For more
information, contact the package author.
反正有解决此问题的方法吗?
Is there anyway to fix this issue?
推荐答案
https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/issues/199
TLDR;
我们现在将用于赢店应用程序的facebook.dll存储在win8
文件夹中,而不是winRT45
,后者仅由nuget 2.1+理解.因此,请确保您的nuget软件包管理器是最新的.
we now store the facebook.dll for win store apps in win8
folder rather than winRT45
which is only understood by nuget 2.1+. So make sure your nuget package manager is up to date.
这篇关于安装NuGet软件包'Facebook 6.1.2'Windows 8 App时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!