ASP.NET Core 101
-
Upload
tuyen-vu-duc -
Category
Technology
-
view
193 -
download
1
Transcript of ASP.NET Core 101
INTRODUCTION TO ASP.NET CORE101
.NET OPEN
Vũ Đức Tuyến
C#.NET Software Developer - Independent@kanvuduc
ABOUT ME
2009
SILVERLIGHT
2014
XAMARIN
2016
ASP.NET CORE
2011
ASP.NET MVC
AGENDA
WHAT’S .NET CORE WHAT’S ASP.NET CORE? DEMO 01: HANDS ON ASP.NET CORE FROM CLI DEMO 02: HANDS ON ASP.NET CORE ON DOCKER CONTAINER SHOULD I USE ASP.NET CORE FOR MY NEXT PROJECT? RESOURCES
WHAT’S .NET CORE?
.NET Core is a subset of .NET framework but a cross-platform implementation of the .NET Platform.
A port of .NET from scratch Redesigned in very small modules Platform agnostic OSS LTS and FTS by MS
Better optimized performance Optimizable app/lib size Cross-platform dev/dep Free Warranty to last
IS IT EASY TO PORT .NET LIBRARIES TO .NET CORE?
YES AND NO
.NET Portability Analyzer
WHAT’RE .NET CORE DEVELOPMENT TOOLS?
VS 2015 Update 3
.NET Core Tools
Windows Only
WHAT’RE .NET CORE DEVELOPMENT TOOLS? (2)
.NET Core SDK Visual Studio Code
Yeoman
DEMO 01: CREATE .NET CORE APP
DRAWBACKS?
Cannot use of existing .NET libraries Cannot use .NET Core libraries in .NET lib/app Cannot use .NET Core libraries in Mono lib/app Only support console app and ASP.NET Core web app for now
WHAT’S ASP.NET CORE?
ASP.NET Core is a new open-source and cross-platform framework for building modern cloud based internet connected applications
Built on top of .NET Core Rewritten of ASP.NET from scratch Redesigned in very small modules OSS LTS and FTS by MS
Cross-platform dev/dep Better optimized performance Optimizable app size Free Warranty to last
WHERE’S ASP.NET CORE ON .NET STACK?
Compilers and runtime components(.NET compiler platform: Roslyn, C#, VB, F#, RyuJIT, SIMD)
ASP.NET 4.6 ASP.NET Core
.NET Framework 4.6
Full-featured and integrated .NET libraries and runtime for Windows
.NET Core
Modular and optimized .NET libraries and runtimes
CoreCLR .NET Native
UWPWPF, WCF, …
WHAT’RE NEW ON ASP.NET CORE?
Unified MVC and Web API Built-in DI Configurations defined in JSON Middleware instead of HttpModule
Friendly Razor with TagHelper ViewComponent instead of child action Self hosted Side-by-side deployment
DEMO 01: ASP.NET CORE WITH CLI, CODE & YO
DEMO 02: ASP.NET CORE ON DOCKER
WHAT’RE NEXT ON ASP.NET CORE?
SingalR 3rd DI Websockets
View precompilation Response caching middleware URL Rewriting middleware
SHOULD I USE ASP.NET CORE FOR MY NEXT PROJECT?
1. Does your project strongly depend on 3rd party libraries?2. Do you want raw performance?3. Do you want to deploy on any sever regardless of OS?4. Do you want to use Docker for your development and production?5. Are you willing to port your existing libraries to .NET Core?
RESOURCES
• .NET DOCS• ASP.NET DOCS
THANK YOU!