通过许多项目ASP.NET升级解决方案从4.6升级到6.0
我尝试使用升级辅助剂,但它在许多项目的解决方案中都没有用,项目版本没有升级到6.0版,而Try-Covert也没有工作,也没有奏效
如何解决此问题
I try to use upgrade-assistant but it didn't work in a solution with many projects , the projects version didn't upgraded to version 6.0, and try-covert also didn't work
How to solve this issue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
迁移网站
从 asp.net表单升级到net 6-是不可能的 - 您必须重写所有内容,包括库。
asp.net形式的方式工作与net 6完全不同。
要从 asp.net mvc 项目转移到net 6,它再次逐页转换。您可以选择使用 yarp代理 Microsoft的工具。
可以在此处找到一个逐步的教程和视频:
inofollow noreferrer“>增量asp.net to asp.net core迁移
迁移库,
如果您不使用ASP.NET表单的一部分,则库可以迁移,例如
您可以为Net 6创建一个新项目,并在那里链接旧项目的文件(不是复制,而是< a href =“ https://jeremybytes.blogspot.com/2019/07/linking-files-in--in-visual-studio.html” rel =“ nofollow noreferrer”>链接它们)并逐步迁移他们净6。
之后,您使用
Migrate Web Site
To upgrade from asp.net forms to net 6 - is impossible - you must rewrite everything, including the libraries.
The way asp.net forms works it totally different than net 6.
To move from asp.net MVC project to net 6, its again a page by page conversion. You have the choice to do that incremental using the YARP proxy a tool by microsoft.
a step by step tutorial and video can be found here:
Incremental ASP.NET to ASP.NET Core Migration
Migrate Libraries
The libraries can migrate if you are not use part of asp.net forms, like the
You can create a new project for net 6, and there link the files of the old project (not copy, but link them) and step by step migrate them to net 6. You can do the same and for all the tests.
After that you use C# preprocessor directives to fix small different - eg: