安装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.