2012-11-20 31 views
2

当试图Facebook的6.1.2的NuGet安装到我的Windows 8应用程序,我得到以下信息:错误当安装NuGet包的Facebook 6.1.2“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

有可能Facebook 6.1.2包不针对.Net框架的4.5版本。

尝试在您的Windows 8应用程序项目中定位到4.0版本。

+0

当我进入属性下拉框改变.Net版本是灰色和空。 –