在添加参考时遇到问题 [英] Getting Problem in adding Refrence

查看:77
本文介绍了在添加参考时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们……

我添加了对 System.Windows.Forms.Ribbon.dll的引用.
但是当我构建或执行代码时,引用将被删除
并且编译器显示错误您是否缺少程序集引用.

当我在解决方案资源管理器中签入时,它的引用就会显示在其中.
但它显示了这个问题.

当我删除此引用并再次添加时,它将从错误列表中删除错误.
但是,再次运行时,它再次显示相同的问题.

解决方案

此处类似的问题http://stackoverflow.com/questions/8791606/when-compiling-app-it-removes-references [ 解决方案

Quite similar problem here http://stackoverflow.com/questions/8791606/when-compiling-app-it-removes-references[^] perhaps the same solution helps in your case.


When I''ve seen this type of problem in the past, it''s normally down to project configuration, specifically, targetting the wrong version of the .NET runtime. Make sure that you have set the target framework to .NET Framework 4 or .NET Framework 4 Client Profile.


这篇关于在添加参考时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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