Is it at all possible to migrate ASP.NET ASPX solution to ASP.NET Core 2.0?

后端 未结 3 420
滥情空心
滥情空心 2021-01-13 03:43

I want to migrate my asp.net (UI ASPX pages WebForms) application to ASP.NET Core 2. By some search I found out aspx is not supported in .net core. If this is true(anyone ha

3条回答
  •  感情败类
    2021-01-13 04:18

    I found an article claiming that it's possible somehow. As you know it's not easy to migrate entire project from WebForm to .Net Core instantly. So what if I be able to have my web form pages working on production and at the same time start to convert pages one by one gradually? I mean there are the combination of two approaches at the same project.

    It's the idea that an open source named DotVVM proposes. You have your ASP.Net web form pages and merely install DotVVM through Nuget. DotVVM supports both approaches. DotVVM contains similar controls like GridView, Repeater, FileUpload and more, you need to know about DotVVM syntax though.

    DotVVM can run side-by-side with other ASP.NET frameworks (Web Forms, MVC, Razor Pages)

    it's claimed that:

    If the business layer is separated properly, rewrite on one page takes about 1 hour in average.

    After a few months (if your project is large), when all the ASPX pages are rewritten in DotVVM, you will be able to create a new ASP.NET Core project, move all DotVVM pages and viewmodels into it and use them with .NET Core. The syntax of DotVVM is the same on both platforms.

    Here you can see five steps needed for the migration.

提交回复
热议问题