moving forward with asp.net core

Post on 09-Feb-2017

271 Views

Category:

Software

5 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Moving forward with ASP.NET CoreGabriel EneaIT Consultant & Trainer – StrongbytesMicrosoft MVP@dotnet18

#CodecampIasi #CodecampCluj #Spring2016

To be discussedASP.NET Framework

Performance

Tooling

Deploying apps

What’s going on?

What’s new about this?

Can I move away from Visual Studio?

Are there any other options?

A bit of context..

2013, OWIN + Project K Open Web Interface for .NET (OWIN) Katana Portable Modular/flexible Lightweight/performance/scalable

Open Source

Say goodbye to System.Web!

2014, Introducing ASP.NET vNext

.NETvNext Web and services

Device optimized Native compilation Small footprint, side-by-side Cross-device enabled

Cloud optimized High throughput Small footprint, side-by-side Cross-platform enabled

Windows Store, WPF, Windows Forms, Console apps and related libraries.

ASP.NET vNext: Web Forms, MVC, Web Pages, Web API, SignalRWCF

Client apps

Next gen JIT (“RyuJIT”)SIMD (Data Parallelization)

Runtime

Compilers.NET Compiler Platform (“Roslyn”)

Languages innovationBCL and PCLEntity Framework

Libraries

Common

Openness

Multi-purpose

Specialized

2015

ASP.NET 5 in a NutshellMVC 6

ASP.NET 5

.NET Execution Environment (DNX)

ASP.NET 4.6(System.Web)

MVC Web API

WebForms

.NET Framework .NET Core Full .NET Framework for any scenario and

library support on WindowsModular libraries & runtime optimized

for server and cloud workloads

2016, JanuaryHanselman: ASP.NET 5 is dead

2016 - .Net Framework

Source: http://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx

(ASP).NET Framework - What’s going on?

"There are only two hard things in Computer Science:

cache invalidation and naming things.“

-- Phil Karlton

The .NET Platform Standard

Mapping the .NET Platform Standard to platforms

Target Platform Name Alias.NET Platform Standard

netstandard 1.0 1.1 1.2 1.3 1.4 1.5

.NET Core netcoreapp → → → → → 1.0

.NET Framework net → → → → → 4.6.2

→ → → → 4.6.1

→ → → 4.6→ → 4.5.

2→ → 4.5.

1→ 4.5

Universal Windows Platform uap → → → → 10.0Windows win → → 8.1

→ 8.0Windows Phone wpa → → 8.1Windows Phone Silverlight wp 8.1

8.0Mono/Xamarin Platforms → → → → → *Mono → → *

ASP.NET Core

ASP.NET Core in a Nutshell

.NET Framework .NET Core

Full .NET Framework for any scenario and library support on Windows

Modular libraries & runtime optimized for server and cloud workloads

ASP.NET 4.6(System.Web)

MVC ASP.NET Core MVC

ASP.NET Core 1.0(Microsoft.AspNetCore)

Web API

WebForms

ASP.NET frameworks - similar, but different

MVC Web APIWeb Pages

Razor

HTML Helpers HTML Helpers

Controllers Controllers

Actions Actions

Filters Filters

Model binding Model binding

DI DI

MVC + Web API + Web Pages

=ASP.NET Core MVC

ASP.NET Core featuresHostingKestrel, StartupMiddlewareRouting, authentication, static files, diagnostics, error handling, session, CORS, localization, customDependency InjectionConfigurationLoggingApplication frameworksMVC, Identiy, SignalR (future)

ASP.NET Project StructureMultiple frameworksproject.jsonglobal.jsonwwwroot folder

Middlewares

ASP.NET Core Performance

Benchmarks for ASP.NET 5

http://web.ageofascent.com/asp-net-core-exeeds-1-15-million-requests-12-6-gbps/

2300% More Requests Served Per Second

Benchmarks for ASP.NET Core @Build2016

3.4 million Requests Per Second

ASP.NET Core Tooling

Tooling

Command Prompt

.NET CLI https://github.com/dotnet/cli

dotnet new

dotnet restore

dotnet build

dotnet run

Yeoman - generator-aspnet

The web's scaffolding tool for modern webapps

npm install -g yo

npm install -g generator-aspnet

yo aspnet

Yeoman - generator-aspnet

Visual Studio Code 1.0 Any language, any OS

Optimized for modern web

Extensions

Open Source

Source: https://www.visualstudio.com/products/code-vs

Deploying ASP.NET Core Apps

Hosting options

Deploying in production

Internet

Kestrel

Proxy Kestrel

Kestrel

“Talk is cheap. Show me the code.” -

Linus Torvalds

It’s time to move forward..

It’s time to move forward.. dotnet.github.io github.com/dotnet/cli github.com/aspnet github.com/aspnet/cli-samples

Thank you!

Moving forward with ASP.NET CoreGabriel EneaIT Consultant & Trainer – StrongbytesMicrosoft MVP@dotnet18

#CodecampCluj #Spring2016

#TheEnd

top related