Migrate .NET Application
to .NET Core
Baris Ceviz
Software Developer @ Trendyol
@PeaceCwz
https://barisceviz.com/
Slide 2
Slide 2 text
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
Slide 3
Slide 3 text
.NET & .NET Core
Platforms
Slide 4
Slide 4 text
.NET Framework
.NET Standard .NET Mono
.NET Core .NET Micro
All .NET
Frameworks
Slide 5
Slide 5 text
.NET Framework Versions
Slide 6
Slide 6 text
Analyze and Find
Dependencies
Slide 7
Slide 7 text
Legoloman
Slide 8
Slide 8 text
Legoloman Usage
Slide 9
Slide 9 text
ESH Package Manager
Slide 10
Slide 10 text
.NET ApiPort
Slide 11
Slide 11 text
.NET ApiPort
Slide 12
Slide 12 text
Multiple Target
Frameworks
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
Referencing and
target frameworks
•Write conditions and package or assembly
reference grouping
Slide 15
Slide 15 text
No content
Slide 16
Slide 16 text
No content
Slide 17
Slide 17 text
No content
Slide 18
Slide 18 text
. Net Core App
(appsettings.json)
•Framework specific
configuration reader
•Multiple frameworks
support
. Net App (app.config)
Slide 19
Slide 19 text
Calling methods with same codes
Slide 20
Slide 20 text
.NET Desktop
Migration
Slide 21
Slide 21 text
Cannot migrate .NET
Desktop app
to .NET Core.
Hopefully, It will
become
in .NET Core 3.0
Slide 22
Slide 22 text
WCF Services or
ASP.NET Web
Services Migration
Slide 23
Slide 23 text
SOAP Core
Slide 24
Slide 24 text
WCF Service
Implementation
Slide 25
Slide 25 text
Startup Configurations
Slide 26
Slide 26 text
ASP.NET
Web Forms
Migration
Slide 27
Slide 27 text
Cannot migrate
ASP.NET Web Forms
Applications
Slide 28
Slide 28 text
ASP.NET MVC
Migration
Slide 29
Slide 29 text
Configurations
Move Move resources to wwwroot
folder
Remov
e
Remove Global.asax and
move into Startup.cs
Move Move Routing into Startup.cs
Slide 30
Slide 30 text
Views
•Move Views folder to
ASP.NET Core Views Folder
•Remove Scripts and Styles
Renderer
•Use async methods in
Views
Slide 31
Slide 31 text
Bundling and
minification
.NET Core Framework not
supported and
recommended runtime
bundling and minification
Supporting in build time
Slide 32
Slide 32 text
No content
Slide 33
Slide 33 text
Bundling and minification in
run-time
Slide 34
Slide 34 text
No content
Slide 35
Slide 35 text
In ViewImpors
Reference in Views
Reference with Enviromment
Bundling and
minification
with Simidge
Slide 36
Slide 36 text
ASP.NET Web API
Migration
Slide 37
Slide 37 text
•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
Slide 38
Slide 38 text
Q&A
Slide 39
Slide 39 text
May the source
be with you
Baris Ceviz
Software Developer @ Trendyol
@PeaceCwz
https://barisceviz.com/
[email protected]