VS2010:尝试添加引用时引用不兼容 [英] VS2010: Incompatible Reference when trying to add reference
问题描述
VS2010:在我新创建的项目中,任何时候我尝试添加对我的任何其他项目的引用,或者在这种情况下,MySql.Data...我收到一个错误,提示不兼容的引用"-在要添加它,您应该先将项目的目标更改为兼容的框架"
VS2010: In my newly created project, any time I try to add a reference to any of my other projects or, in this case, MySql.Data...I get an error that says "Incompatible Reference" - "In order to add it you should to change the project's target to a compatible framework first"
我的项目目标设置为 .NET 4,无论我尝试添加的引用是否设置为 .NET 4,我仍然收到错误消息.有人有什么建议吗?谢谢
My project's target is set to .NET 4 and whether or not the reference I'm trying to add is or isn't set to .NET 4 I still get the error. Anyone got any suggestions? Thanks
推荐答案
好吧,我不确定是什么问题,但如果我浏览到物理文件以添加引用而不是使用最近"或其他对话添加引用窗口,它工作得很好.一直不明白为什么另一种方式对我不起作用.
well I'm not sure what the problem was but if I browse to the physical file to add the reference instead of using the "Recent" or other dialogues in the the Add References window, it works just fine. Never figured out why the other way stopped working for me.
这篇关于VS2010:尝试添加引用时引用不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!