Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deep dive into what’s new in ASP.NET Core 2.1

Deep dive into what’s new in ASP.NET Core 2.1

An introduction to .NET Core for developers familiar with the .NET Framework. Lists the new additions to versions 2.0 and 2.1 of the .NET Core and ASP.NET Core frameworks.

Avatar for Bart Verkoeijen

Bart Verkoeijen

July 25, 2018

Other Decks in Programming

Transcript

  1. Deep Dive into what’s new in ASP.NET CORE 2.1 Bart

    Verkoeijen / @bgever Microsoft Developers HK — 25 July 2018
  2. Show of hands: š Who uses .NET Core? š Who

    is planning to use .NET Core? š Who just wants to know what all the fuss is about?
  3. Where does .NET Core fit in? .NET Standard .NET Framework

    Windows .NET Core Linux macOS Windows
  4. Reasons NOT to port š Not enough APIs š Desktop

    applications WPF / WinForms š ASP.NET Web Forms š Entity Framework 6 many-to-many relations š You’re happy with the status-quo .NET Framework
  5. Reasons to port š Highly scalable web apps š Apps

    on Linux Docker / microservices š Side-by-side deployments š Self-contained deployments š Performance
  6. Where does .NET Core fit in? .NET Standard .NET Framework

    Windows .NET Core Windows macOS Linux
  7. .NET Standard Platforms .NET Standard 1.0 1.1 1.3 1.4 1.6

    2.0 .NET Core 1.0 1.0 1.0 1.0 1.0 2.0 .NET Framework 4.5 4.5 4.6 4.6.1 4.6.1 4.6.1 Mono 4.6 4.6 4.6 4.6 4.6 5.4 Xamarin.iOS 10.0 10.0 10.0 10.0 10.0 10.14 Xamarin.Mac 3.0 3.0 3.0 3.0 3.0 3.8 Xamarin.Android 7.0 7.0 7.0 7.0 7.0 8.0 Universal Windows Platform 10.0 10.0 10.0 10.0 10.0.16299 10.0.16299
  8. .NET Framework 4.7.1 š Implements .NET Standard 2.0 š Instead

    of tooling required for 4.6.1+ š Clean bin folder outputs š No binding redirects š https://github.com/dotnet/standard/issues/514
  9. Let’s talk binding redirects š No more in .NET Core

    š Still has if targeting .NET Core on top of .NET Fx š “Deep-dive into .NET Core primitives: deps.json, runtimeconfig.json, and dll’s” https://natemcmaster.com/blog/2017/12/21/netcore-primitives/
  10. Great things before .NET Core 2.0 š `dotnet` CLI š

    Side-by-side š Self-contained deployments š Cross-platform support š Docker container images š New csproj file system
  11. What’s new in 2.0 š .NET Standard 2.0 š Windows

    Compatibility Pack š .NET Framework libraries that are in .NET Standard š Visual Basic in addition to C# & F# š `dotnet restore` runs implicitly
  12. Windows Compatibility Pack š Access to 20,000 more APIs than

    are available in .NET Core. š Windows-only and some cross-platform š System.Drawing namespace, the EventLog class, WMI, Performance Counters, Windows Services, and the Windows registry types and members https://blogs.msdn.microsoft.com/dotnet/2017/11/16/announcing-the-windows- compatibility-pack-for-net-core/
  13. What’s new in 2.1 š Faster builds š Global tools

    (like `npm install –g`) š Roll forward (minor versions, e.g. 2.0 à 2.1) š Self-contained application servicing (`dotnet publish`) š Visual Basic in addition to C# & F# š `dotnet restore` runs implicitly
  14. Great things before ASP.NET Core 2.0 š New middleware based

    pipeline š Kestrel server š Configuration š Logging abstraction š Merged namespaces for ASP.NET MVC and Web API š JavaScript Services (Angular, React, Webpack)
  15. What’s new in 2.0 š Razor Pages š ASP.NET Core

    metapackage š Runtime Store š Automatic Razor view precompilation
  16. What’s new in 2.1 š SignalR š Razor class libraries

    š Identity UI library & scaffolding š HTTPS on by default & tooling š GDPR š Integration tests š IHttpClientFactory and HttpClient performance improvements š OpenAPI (Swagger) conventions for easy generation
  17. Deep Dive into what’s new in ASP.NET CORE 2.1 Bart

    Verkoeijen / @bgever Microsoft Developers HK — 25 July 2018