Migrate .NET Application to .NET Core Baris Ceviz Software Developer @ Trendyol @PeaceCwz https://barisceviz.com/
Agenda • .NET & .NET Core Platforms • Analyze and find dependencies • Multiple Target Frameworks • .NET Desktop Migration • WCF/WS Migration • ASP.NET Web Forms & MVC & Web API Migration
.NET & .NET Core Platforms
.NET Framework .NET Standard .NET Mono .NET Core .NET Micro All .NET Frameworks
.NET Framework Versions
Analyze and Find Dependencies
Legoloman
Legoloman Usage
ESH Package Manager
.NET ApiPort
.NET ApiPort
Multiple Target Frameworks
Referencing and target frameworks • Write conditions and package or assembly reference grouping
. Net Core App (appsettings.json) • Framework specific configuration reader • Multiple frameworks support . Net App (app.config)
Calling methods with same codes
.NET Desktop Migration
Cannot migrate .NET Desktop app to .NET Core. Hopefully, It will become in .NET Core 3.0
WCF Services or ASP.NET Web Services Migration
SOAP Core
WCF Service Implementation
Startup Configurations
ASP.NET Web Forms Migration
Cannot migrate ASP.NET Web Forms Applications
ASP.NET MVC Migration
Configurations Move Move resources to wwwroot folder Remove Remove Global.asax and move into Startup.cs Move Move Routing into Startup.cs
Views • Move Views folder to ASP.NET Core Views Folder • Remove Scripts and Styles Renderer • Use async methods in Views
Bundling and minification .NET Core Framework not supported and recommended runtime bundling and minification Supporting in build time
Bundling and minification in run-time
In ViewImpors Reference in Views Reference with Enviromment Bundling and minification with Simidge
ASP.NET Web API Migration
• Remove Global.asax and move into Startup.cs • Modify HttpContext to HttpContextAccessorFactory • Use Dependency Injection • If you are using Identity, Should be review and change table Schemas in SQL Configurations
Q&A
May the source be with you Baris Ceviz Software Developer @ Trendyol @PeaceCwz https://barisceviz.com/ baris.ceviz@trendyol.com

Migrating .NET Application to .NET Core