ASP.NET Core

15
www.xedotnet .org Andrea Dottor Microsoft MVP ASP.NET @dottor ASP.NET Core vs Node.JS

Transcript of ASP.NET Core

Page 1: ASP.NET Core

www.xedotnet.org

Andrea Dottor Microsoft MVP ASP.NET@dottor

ASP.NET Core vs Node.JS

Page 2: ASP.NET Core

Codice e slide onlineCodice:• https://github.com/andreadottor/XE_AspNetCore

Slide:• https://www.slideshare.net/andreadottor/aspnet-core-72247751

Page 3: ASP.NET Core

ASP.NET Core• A unified story for building web UI and web APIs• Integration of modern client-side frameworks and development

workflows• A cloud-ready environment-based configuration system• Built-in dependency injection• New light-weight and modular HTTP request pipeline• Ability to host on IIS or self-host in your own process• Built on .NET Core, which supports true side-by-side app versioning• Ships entirely as NuGet packages• New tooling that simplifies modern web development• Build and run cross-platform ASP.NET apps on Windows, Mac and

Linux• Open source and community focused

Page 4: ASP.NET Core

A che punto siamo• Visual Studio 2017 verrà rilasciato il 7 Marzo• Il codice scritto da MAC con .NET Core SDK 1.0

RC4 può essere aperto ed eseguito da Visual Studio 2017 RC3 senza modificare nulla.• Ora il file di progetto ha estensione *.csproj

Page 5: ASP.NET Core

modular HTTP request pipeline

Siamo noi a decidere come comporre la pipeline in un'applicazione ASP.NET Core

Page 6: ASP.NET Core

Ships entirely as NuGet packagesOgni elemento di ASP.NET Core viene rilasciato come

packages NuGet. Per poter utilizzare/aggiungere nuove funzionalità è sufficiente indicarli nel file di

progetto e fare "dotnet restore"

Page 7: ASP.NET Core

Alcune novitàin tema con la serata

Page 8: ASP.NET Core

SpaTemplates, SpaServices, NodeServices

• Building Single Page Applications on ASP.NET Core with JavaScriptServices• https://blogs.msdn.microsoft.com/webdev/2017/02/14/

building-single-page-applications-on-asp-net-core-with-javascriptservices/

• New Single-Page Application project:• angular, aurelia, knockout, react, and reactredux

• Server-side prerendering• Webpack dev middleware• Hot Module Replacement

Page 9: ASP.NET Core

Using NodeServices

Page 10: ASP.NET Core

Using NodeServices

Page 11: ASP.NET Core

ASP.NET Core Sockets• https://vimeo.com/204078084

Page 12: ASP.NET Core

dotnet new

dotnet new mvc --auth None --framework netcoreapp1.0

Page 13: ASP.NET Core

DEMO

Page 14: ASP.NET Core

Chi sonoAndrea DottorMicrosoft MVP ASP.NET

[email protected]@dottor

Page 15: ASP.NET Core

Feedbackhttps://goo.gl/forms/KIluwHIJ8v9JSCXn1