简体   繁体   English

将在 VS 2010 ASP.NET 4.0 中创建的 web 应用程序转换为 ASP.NET 3.5

[英]Convert a web app created in VS 2010 ASP.NET 4.0 to ASP.NET 3.5

I've made a web app in VS 2010 and by default, I think it uses the .NET Framework 4.0.我在 VS 2010 中制作了 web 应用程序,默认情况下,我认为它使用 .NET Framework 4.0。 Problem is, the server that's going to run it doesn't have 4.0.问题是,要运行它的服务器没有 4.0。

Is there a way to downgrade the project?有没有办法降级项目? I'm not really knowledgeable with web hosting or web servers so I don't really know which is easier, downgrading the project or upgrading the web server.我不太了解 web 托管或 web 服务器,所以我真的不知道哪个更容易,降级项目或升级 web 服务器。 It's a company web server by the way, so I'm not sure about the legalities and stuff.顺便说一句,这是一家公司 web 服务器,所以我不确定合法性和东西。 It's free though, right?不过它是免费的,对吧?

Just right-click on the project in the Solution Explorer and go to properties.只需右键单击解决方案资源管理器中的项目和 go 到属性。 Under the "Application" tab, change the "Target Framework" from 4.0 to 3.5.在“应用程序”选项卡下,将“目标框架”从 4.0 更改为 3.5。 That should do it provided you are not using any code features unique to 4.0.如果您没有使用 4.0 独有的任何代码功能,则应该这样做。

If you can update the server easily, I would recommend that so that you have the 4.0 framework available to you going forward.如果您可以轻松更新服务器,我会建议您使用 4.0 框架,以便您继续使用。 The .NET framework is a free download. .NET 框架可免费下载。

Right-click on the project name and select Properties On the Application tab, you should see a Target framework: dropdown.右键单击项目名称和 select PropertiesApplication选项卡上,您应该会看到Target framework:下拉菜单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM