.NET v2.0到v4.6.2 [英] .NET v2.0 to v4.6.2

查看:56
本文介绍了.NET v2.0到v4.6.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

目前,我们客户的应用程序(c#代码)是用.NET 2.0编译的,最近我们的客户希望我们升级到.NET v4。 6.2。

Currently, our client's apps (c# codes) are compiled in .NET 2.0, and recently our client wanted us to upgrade to .NET v4.6.2.

由于我不熟悉将代码从v2.0转换为4.6.2的技术更新,我想向那些有过升级.NET版本经验的人寻求帮助。通常我需要处理什么程序?

As I am new to this tech refresh of converting code from v2.0 to 4.6.2, would like to seek help from those who had experienced in upgrading of .NET version. Typically what are the procedure I need to take care of?

欢迎来自社区的任何有用的输入,谢谢你们!

Any useful inputs from the community are welcome, Thanks guys!

推荐答案

只需将每个项目更改为目标.NET 4.6.2,然后重新编译即可。在大多数情况下,一切都应该按原样运作。运行你的测试,然后像往常一样进行回归测试,你应该没问题。

Just change each project to target .NET 4.6.2 and then recompile. For the most part everything should just work as is. Run your tests and then do regression testing like you normally would for a release and you should be fine.

另请注意,如果你依赖任何NuGet包,那么你很可能需要删除并将它们添加回来。如果您使用的是针对特定框架的NuGet包,然后切换到较新的CLR版本(例如
CLR v2到v4),则VS会报告警告。删除和添加回包可以解决问题。 

Also note that if you depend upon any NuGet packages then you will most likely need to remove and add them back. VS tends to report warnings if you are using a NuGet package that targets a specific framework and then you switch to a newer CLR version (e.g CLR v2 to v4). Removing and adding back the packages resolves the issue. 


这篇关于.NET v2.0到v4.6.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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