缺少命名空间降级到asp.net 4.0时 [英] Missing namespaces when downgrading to asp.net 4.0

查看:92
本文介绍了缺少命名空间降级到asp.net 4.0时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是要我的ASP.Net 4.5应用程序降级到一个ASP.Net 4.0应用程序,因为我们的服务器不支持4.5。我降级它的方式是pretty简单:

I just had to downgrade my ASP.Net 4.5 application to an ASP.Net 4.0 application, because our servers don't support 4.5. The way I downgraded it was pretty simple:

项目 - >属性 - >应用程序 - >目标框架

Project -> Properties -> Application -> Target Framework

在完成它做的东西,我重新启动的解决方案,试图启动调试,但它的权利停下后,我开始调试,让我先一些错误(这说,他们无法找到一些命名空间)的几分之一秒和后错误消失它给了我127的警告,所有看起来像这样:

When it finished doing stuff, I restarted the solution, tried to start debugging, but it stopped right after I started debugging, giving me first some errors (which say they can't find some namespaces) for a fraction of a second and after the errors disappeared it gives me 127 warnings that all look like this:

警告

现在我知道问题是什么在这里,但我不知道如何解决这个问题..有谁知道如何解决这些警告?

Now I know what the problem is here, but I don't know how to solve this issue.. Does anyone know how to fix these warnings?

在此先感谢

信息

我在使用Visual Studio 2015年社区

I'm using Visual Studio 2015 Community

推荐答案

它实际上不是那么容易当谈到与ASP.NET。你必须去通过所有的web.config(S)和降级引用的库。如果新项目,只是在.NET 4中创建新的ASP.NET和你比较其web.config文件(S)。

It is actually not that easy when it comes with ASP.NET. You have to go through all web.config(s) and downgrade referenced libraries. If its new project, just create new ASP.NET on .NET 4 and compare its web.config(s) with yours.

这篇关于缺少命名空间降级到asp.net 4.0时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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