在添加对项目的引用时,有时会看到消息... [英] When adding a reference to a project I sometimes see the message...

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

问题描述

项目"Bll"的目标框架版本高于当前项目目标框架版本.您是否仍要将此引用添加到您的项目中?

我无法将bll引用添加到我的表示层.我了解该消息所指示的内容,但我不知道要在web.config文件中使用什么代码来清除此问题?

The Target Framework version for the project ''Bll'' is higher than the current project Target Framework version. Would you like to add this reference to your project anyway?

I could not able to add bll refernce to my presentation layer. I understand what the message is indicating but i dono what code i ve to use in web.config file to clear this issue??

推荐答案

打开项目属性窗口并转到转到应用程序"标签.在那里,您可以看到目标框架"组合框.尝试选择更高版本(例如,如果当前正在使用.NET Framework 3.5,则为.NET Framework 4).
但是您必须意识到,一旦更改了框架版本,您的项目可能就无法在较早的版本上运行.因此有时候,与其添加对为最新框架设计的程序集的引用,不如寻找要求不高的替代方案.
Open project properties window and go to "Application" tab. There you can see "Target framework" combobox. Try selecting higher version (for example, .NET Framework 4 if currently you''re using .NET Framework 3.5).
But you must be aware that once you change framework version, you project may be unable to work on earlier versions. So sometimes instead of adding reference to assembly designed for latest framework it''s better to look for less demanding alternatives


谢谢.问题得以解决.


这篇关于在添加对项目的引用时,有时会看到消息...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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