什么是从.net 2.0迁移到4.0的最佳方式 [英] What is the Best Way to Migrate from .net 2.0 to 4.0

查看:236
本文介绍了什么是从.net 2.0迁移到4.0的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是从.net 2.0迁移到4.0的最佳方式

What is the Best Way to Migrate from .net 2.0 to 4.0

推荐答案

查看此主题

将c#.net 2.0转换为4.0 [ ^ ]


通过使用属性页面从构建选项卡中选择目标框架到.Net framework 4,从visual studio更改目标框架的版本。

还在web中设置以下代码.config文件。



Change you version of the target framework from visual studio by using property pages and selecting target framework to ".Net framework 4" from the build tab.
Also set following code in web.config file.

<system.web>
    <pages enableviewstatemac="false" controlrenderingcompatibilityversion="3.5" clientidmode="AutoID" />
</system.web>


您可以升级现有项目并创建一个新项目,这样您就可以在web等文件中进行一些清理。通过删除不再需要的东西进行配置。



如果您的项目非常庞大且复杂,您可能希望保存版本控制系统中的每一步,以便出了问题,你可以回去......
Well you can upgrade your existing project and also create a new one so that you will be able to do some cleanup in files like web.config by removing stuff that is not needed anymore.

If your project is quite big and complex, you might want to save each step in your version control system so that if something goes wrong, you can go back...


这篇关于什么是从.net 2.0迁移到4.0的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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