将 VS 2010 ASP.NET 4.0 中创建的 Web 应用程序转换为 ASP.NET 3.5
我在 VS 2010 中制作了一个 Web 应用程序,默认情况下,我认为它使用 .NET Framework 4.0。问题是,要运行它的服务器没有 4.0。
有没有办法降级项目?我对网络托管或网络服务器不太了解,所以我真的不知道降级项目或升级网络服务器哪个更容易。顺便说一句,这是一个公司的网络服务器,所以我不确定合法性和其他东西。不过它是免费的,对吧?
I've made a web app in VS 2010 and by default, I think it uses the .NET Framework 4.0. Problem is, the server that's going to run it doesn't have 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. It's a company web server by the way, so I'm not sure about the legalities and stuff. It's free though, right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需右键单击解决方案资源管理器中的项目并转到属性即可。在“应用程序”选项卡下,将“目标框架”从 4.0 更改为 3.5。如果您没有使用 4.0 特有的任何代码功能,那么应该可以做到这一点。
如果您可以轻松更新服务器,我建议您这样做,以便您以后可以使用 4.0 框架。 .NET 框架可以免费下载。
Just right-click on the project in the Solution Explorer and go to properties. Under the "Application" tab, change the "Target Framework" from 4.0 to 3.5. That should do it provided you are not using any code features unique to 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. The .NET framework is a free download.
右键单击项目名称并选择
Properties
在Application
选项卡上,您应该会看到Target Framework:
下拉列表。Right-click on the project name and select
Properties
On theApplication
tab, you should see aTarget framework:
dropdown.