Unveiling ASP.NET Core 2.0 Advancements
Explore the enhanced features of ASP.NET Core 2.0 including cross-platform capabilities, increased API support, seamless integration with .NET Standard libraries, and improved performance. Learn about the versatile tools and frameworks that empower developers to create dynamic web applications efficiently.
Uploaded on Sep 14, 2024 | 0 Views
Download Presentation
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
E N D
Presentation Transcript
Introducing ASP .NET Core 2.0 Daniel Roth
.NET Core Cross-platform Windows, Linux and macOS Fast ASP.NET Core on .NET Core is 4x faster than Node.js in TechEmpower benchmark Lightweight No impact deployment and a modular development model perfect for containers Open source Runtime, libraries, compiler, languages and tools developed in the open in GitHub
.NET Core 2.0 supports .NET Standard 2.0 +20K More APIs than .NET Standard 1.x Has much bigger API surface Extended to cover intersection between .NET Framework and Xamarin Also makes .NET Core 2.0 bigger as it implements .NET Standard 2.0 ~70% of NuGet packages are API compatible Can reference .NET Framework libraries Compatibility shim allows referencing existing .NET Framework binaries No recompile required also covers existing NuGet packages Limited to libraries that only use APIs that are available for .NET Standard
.NET platform TOOLS TOOLS DESKTOP MOBILE CLOUD .NET FRAMEWORK WINDOWS UWP .NET CORE ASP.NET XAMARIN Visual Studio .NET STANDARD LIBRARY Visual Studio for Mac COMMON INFRASTRUCTURE COMMON INFRASTRUCTURE Visual Studio Code Compilers Languages Languages Runtime components Runtime components
.NET Core -- Cross-platform services TOOLS DESKTOP MOBILE CLOUD .NET FRAMEWORK WINDOWS UWP .NET CORE ASP.NET XAMARIN Visual Studio .NET STANDARD LIBRARY Visual Studio for Mac COMMON INFRASTRUCTURE Visual Studio Code Compilers Languages Runtime components
ASP .NET Core 2.0 targets .NET Standard 2.0 ASP.NET Core 2.0 ASP.NET 4.7 .NET Framework 4.7 .NET Core 2.0 .NET Standard libraries Compilers and runtime components (.NET Compiler Platform: Roslyn, C#, VB, F# Languages, RyuJIT, SIMD)
ASP .NET Core 2.0 themes Developer Delight Extending App Models Performance Better with Azure
Developer Delight One package, one version - Microsoft.AspNetCore.All Config provided by the host through DI Default web host builder adds convenient conventions Kestrel, IIS integration config sources, logging providers, content root, service scope validation Built-in config for common scenarios: Logging, endpoints, HTTPS, authentication
Extending App Models Web Pages MVC Web API 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 Now with Razor Pages! Now with Razor Pages!
Razor Pages An easier way to build web UI with MVC For projects of all sizes, big and small Testable page models Works great for server-side forms and SPA apps
Razor Pages DEMO
Performance ASP .NET Core 1.1 ASP .NET Core 2.0.0 (current) ASP .NET Core 2.0.0 (current) 444,000 rps 558,000 558,000 rps rps ~25% faster! Azure, 4-core, Ubuntu 16.04
Performance DEMO
Better with Azure Light up diagnostics & telemetry with Application Insights Integrated Identity with Azure AD B2C Identity as a service with ASP .NET Core Identity Includes Web API security support!
ASP.NET Core Identity Service & Azure AD B2C ASP.NET Core Web App OpenID Connect HomeController AccountController App + _Layout. cshtml Index. cshtml Identity Store Data Store App Identity Authorize /IdentityService Register. cshtml Login. cshtml Token Discovery Azure AD B2C
Better with Azure DEMO
Resources Try out new bits today .NET Core 2.0 Preview 1 SDK http://www.microsoft.com/net/core/preview VS 2017 Update 3 Preview https://www.visualstudio.com/preview/ .NET Architecture https://www.microsoft.com/net/architecture Editor Productivity & Refactoring Cheat Sheet https://aka.ms/vs2017productivityguide