当尝试将Facebook 6.1.2 NuGet安装到我的Windows 8应用程序中时,我收到以下消息:
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.
有没有解决这个问题?
答案 0 :(得分:4)
https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/issues/199
的详细信息TLDR;
我们现在将win.dll商店的facebook.dll存储在win8
文件夹而不是winRT45
,只有nuget 2.1+才能理解。因此,请确保您的nuget包管理器是最新的。
答案 1 :(得分:0)
Facebook 6.1.2软件包可能不是针对.Net框架的4.5版本。
尝试在Windows 8 App项目中定位4.0版。