框架从.NET 3.5升级到.NET 4.8
我正在与我的一位客户合作,其中他们仍在.NET Framework 3.5上写了一些应用程序。尽管我们仍然支持.NET 3.5,但客户希望将框架升级到4.8。到目前为止,没有计划迁移到Core/.NET 6,而是要升级到Framework的最新版本4.8。
我正在寻找一些指针,以将应用程序从3.5迁移到4.8,可能是运行时更改/重新定位更改/破坏更改。如果有人可以给我一个路线图来解决问题 - 从哪里开始,要研究哪些细节等。请帮忙。
提前致谢!
I'm working with one of my clients wherein they are having a few application still written on .net framework 3.5. Though we still have support for .net 3.5, client wishes to upgrade the framework to 4.8. There are no plans to migrate to core/.net 6 as of now but to upgrade to framework's latest version 4.8.
I'm looking for some pointers to migrate an application from 3.5 to 4.8, what could be the runtime changes/retargeting changes/breaking changes. It would be of great help if someone could give me a roadmap to address the problem - where to start from, what details to look into etc. I searched a lot and could not get any specific pointer for my use case. Please help.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,在大多数情况下,您应该能够简单地将项目设置为.NET 4.8(或4X)。但是,您不妨一路走。
但是,您必须在Web服务器上下载和安装.NET 4.8。因此,在开发人员计算机上,您最喜欢有.NET 4.8。但是,不要忘记在Web服务器上下载 + install .NET 4.8(如果是托管计划,请找出它们支持的.NET的级别是什么)。
因此,在大多数情况下,您应该能够简单地将其设置为4.8,然后查看是否编译。您有很大的机会。
那将是此设置project->“我的项目名称属性”
因此,以上大部分时间都应该使事物起作用。
另外,一旦您完成了上述(然后重新构建)。您要检查Web.config,然后进行此设置:
如前所述,您还必须检查/确保Web托管服务器(如果不是现场服务器)还需要下载和安装.NET框架。通常它们已经是,但是您想检查一下。
您也可能使用ASP.NET网站,而不是ASP.NET网站应用程序,因此上述步骤确实有所改变。
Well, in most cases, you should be able to simple set the project up to say .net 4.8 (or 4x). But, you might as well go all the way.
You WILL however has to download and install .net 4.8 on the web server. So, on your developer computer, you most likly do have .net 4.8. But, don't forget to download + install .net 4.8 on the web server (or if it is a hosted plan, find out what is the level of .net they support).
So, for the most part, you should be able to simple in your project, set it as 4.8, and see if it compiles. You have a VERY good chance it will.
That would be this setting project->"my project name properties"
So, the above for the most part should make things work.
Also, once you done the above, (then re-build all). You want to check web.config, and this setting:
As noted, you also have to check/ensure that the web hosted server (if this is not a on-site server) also needs the .net frameworks to be downloaded and installed. Often they already are but you want to check that.
It also possible that you are using a asp.net web site as opposed to a asp.net web site application, and thus the above steps do change somewhat.