从4.0迁移到4.6.2 [英] Migration from 4.0 to 4.6.2

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

问题描述

我们最近将现有的网站从4.0迁移到4.6.2。发布网站后,我们发现只有web.config文件的更改版本为4.6.2 


我们是否真的需要移动整个代码或者仅仅在现有服务器中替换web.config就够了?


解决方案

您好Vivekgvivi1986,


感谢您在MSDN论坛上发帖。


如果您使用早期版本的.NET Framework创建了应用程序,通常可以将其升级到.NET Framework 4.5及其版本(4.5.1和4.5.2),.NET Framework  4.6及其点发布(4.6.1和4.6.2),或.NET Framework
4.7很容易。在Visual Studio中打开您的项目。如果您的项目是在早期版本中创建的,则会自动打开
项目兼容性对话框。有关在Visual Studio中升级项目的详细信息。


请参阅
端口,迁移和升级Visual Studio项目

Visual Studio 2017平台定位和兼容性


此外,此论坛是关于.NET Framework设置和服务的,您的问题与Asp.net网站迁移有很大关系,您也可以发布
https://forums.asp.net/论坛提供专业支持。


感谢您的理解与合作。


最诚挚的问候,



We have recently migrated our existing website from 4.0  to 4.6.2, After publishing the website we can see the change is only to web.config file with the version as 4.6.2 

Do we really need to move entire code or just replacing web.config alone in the existing server will be enough?

解决方案

Hi Vivekgvivi1986,

Thank you for posting in MSDN forum.

If you created your app using an earlier version of the .NET Framework, you can generally upgrade it to the .NET Framework 4.5 and its point releases (4.5.1 and 4.5.2), the .NET Framework  4.6 and its point releases (4.6.1 and 4.6.2), or the .NET Framework 4.7 easily. Open your project in Visual Studio. If your project was created in an earlier version, the Project Compatibility dialog box automatically opens. For more information about upgrading a project in Visual Studio.

Please see Port, Migrate, and Upgrade Visual Studio Projects and Visual Studio 2017 Platform Targeting and Compatibility.

In addition, this forum is about .NET Framework setup and servicing, as your question is much related to Asp.net website migration, you could also post in https://forums.asp.net/ forum for a much professional support.

Thank you for your understanding and cooperation.

Best Regards,


这篇关于从4.0迁移到4.6.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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