使用 Visual Studio 设置 facebook API
我是开发和学习开发 Windows 7 手机应用程序的新手。我试图在 https://github.com/facebook/csharp 上运行 facebook Graph API 的示例代码-sdk facebook API 的编译成功,但是当我尝试运行给定的示例代码时,它给出错误“无法找到类型或命名空间名称‘facebook’。我已在项目中添加了 facebook.dll参考资料
谁能告诉我具体的程序,谢谢
?
I am newbie in developing and learning to develop windows 7 phone application. I was trying to run the sample code for Graph API of facebook on https://github.com/facebook/csharp-sdk the compilation of facebook API was successful but when I try to run the example code given, it gives me error "Type or namespace name 'facebook ' could not be found. I have added facebook.dll in the project references
can anyone tell me the exact procedure to follow please ?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,这个 dll 是为哪种类型和版本的 .NET 编译的?如果它是“桌面”.NET 3.5/4 项目,则无法直接在 WP7 项目中使用它。
您需要创建一个新的类库 Winows Phone 7 项目(例如 Facebook.WP7)并将 Github 中的现有源文件添加到其中。现在您可以在 WP7 项目中引用该项目。
Humm the dll was compiled for which type and version of .NET ? If it's a "desktop" .NET 3.5/4 project, you can't use it directly in your WP7 project.
You need to create a new Class Library Winows Phone 7 Project (Facebook.WP7 for example) and add the existing source files from Github to it. And now you can reference this project in your WP7 project.
您在项目中引用了哪个 Facebook.dll ???该套件的 WP7 和桌面版本有单独的一套。
Which Facebook.dll you referenced in your project??? There is separate one for WP7 and Desktop version of the kit.