[英]FaceBook C# SDK in Windows 8 Release VS2012
I downloaded this example about FB SDK C# for metro app at here: 我在这里下载了有关Metro应用程序的FB SDK C#的示例:
https://github.com/facebook-csharp-sdk/facebook-metro-sample https://github.com/facebook-csharp-sdk/facebook-metro-sample
However, when we run it on VS 2012 express + Windows 8 Release Preview, it can't post status to wall after logging is complete. 但是,当我们在VS 2012 Express + Windows 8 Release Preview上运行它时,它无法在记录完成后将状态发布到墙上。
We get this error message: 我们收到此错误消息:
"A first chance exception of type
'System.TypeLoadException'
occurred in Facebook.DLL An exception of type'System.TypeLoadException'
occurred in Facebook.DLL but was not handled in user code Additional information: Could not load type'System.Text.Encoding'
from assembly'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
." “类型的第一次机会异常'System.TypeLoadException'
发生在Facebook.DLL类型的异常'System.TypeLoadException'
发生Facebook.DLL但在用户代码中的附加信息没有被处理的:未能加载类型'System.Text.Encoding'
从装配'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
“。
Does anyone have any idea on how to get this to run with VS2012? 有谁知道如何使它与VS2012一起运行吗?
I found a solution , 我找到了解决方案,
download the new version from https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/tree/565cc5306486bc188771fddebe40861783f2a5b7 (version 6.0.20) 从https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/tree/565cc5306486bc188771fddebe40861783f2a5b7 (版本6.0.20)下载新版本
build it in release , and in your project refference the new facebook.dll 在release中构建它,并在您的项目中引用新的facebook.dll
It worked for me 对我有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.