Unveiling ASP.NET Core 2.0 Advancements

Slide Note
Embed
Share

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


  1. Introducing ASP .NET Core 2.0 Daniel Roth

  2. .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

  3. .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

  4. .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

  5. .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

  6. 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)

  7. ASP .NET Core 2.0 themes Developer Delight Extending App Models Performance Better with Azure

  8. ASP .NET Core 2.0 Preview 1 DEMO

  9. 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

  10. 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

  11. MVC + Web API + Web Pages = ASP .NET Core MVC Now with Razor Pages! Now with Razor Pages!

  12. 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

  13. Razor Pages DEMO

  14. 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

  15. Performance DEMO

  16. 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!

  17. 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

  18. Better with Azure DEMO

  19. 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

Related


More Related Content