问题调试代码当前目标框架.NETFRAMEWORK,Version = v4.0

时间:2015-08-18 08:50:02

标签: c# visual-studio-2013 asp.net-3.5

我正在使用Visual Studio 2013上基于.NET Framework 3.5版的ASP.NET应用程序,当我调试代码时,我收到了以下警告消息

Warning 708 The currently targeted framework ".NETFramework,Version=v4.0,Profile=Client" does not include "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which the referenced assembly "C:\Users\kzahid\Desktop\ADB Project\My Development\13.023-PSMD-Startup-master\13.023-PSMD-Startup-master\Applications\ORC.PCMD.ADB\ORC.PCMD.BLL\bin\Debug\ORC.PCMD.ADB.BLL.dll" depends on. This caused the referenced assembly to not resolve. To fix this, either (1) change the targeted framework for this project, or (2) remove the referenced assembly from the project.    ObjectTester

enter image description here

从项目属性中,它确认.NET Framework版本为3.5,但我不确定为什么会出现以下错误!

1 个答案:

答案 0 :(得分:1)

您是否尝试过清理解决方案,将版本更改为4.0,保存,然后将其更改回3.5并重建?我不时在Visual Studio中看到过一些奇怪的东西,有时它似乎因某种原因而挂在旧设置上。