引用的程序集“Facebook”无法解析 [英] The referenced assembly “Facebook” could not be resolved

查看:134
本文介绍了引用的程序集“Facebook”无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我的项目是一个winform项目,并添加引用Facebook.dll和Facebook.Winforms.dll以连接到Facebook API。但它显示错误



hi all.
my project is a winform project and add reference Facebook.dll and Facebook.Winforms.dll to connect to Facebook API. But it show error

"The referenced assembly "Facebook" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. anothertry"





请帮助我!谢谢!



please help me ! thank you !

推荐答案

检查你的项目是哪个程序集.NET框架版本,哪个是Facebook.dll...似乎不匹配,

错误消息非常简单。



Eg尝试在面向.NET 4.0的项目中运行.NET 4.5程序集时遇到问题

在x86-32解决方案中运行x64 dll也是一样的(尽管有不同的错误消息)



[更新]

*转到项目的属性并选择目标框架为.NET 4.0,不是客户端配置文件

[/ update]



干杯,

Edo
Check which assembly .NET framework version your project is and which is the "Facebook.dll"... there seems to be a mismatch,
It is pretty straight forward out of the error message.

E.g. You will have a problem trying to run .NET 4.5 assemblies in a project that targets .NET 4.0
Same goes for running x64 dlls in x86-32 solutions (with a different error message though)

[update]
* Go to the project's properties and select the target framework to be .NET 4.0, not Client Profile
[/update]

Cheers,
Edo


这篇关于引用的程序集“Facebook”无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆