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

.NET 6 New Features

.NET 6 New Features

Did you know that .NET 6 is an upgrade? It's so easy to upgrade it's almost like upgrading to a new operating system--just download the software, run it, and you're done. But if you're seriously considering upgrading to .NET 6, you should read what's in store for your apps when it's released.

Competenza Innovare

October 25, 2021
Tweet

More Decks by Competenza Innovare

Other Decks in Programming

Transcript

  1. 1 New Features SDK Workload Microsoft has come up with

    a new .NET SDK feature- SDK workload that supports new kinds of application -mobile and WebAssembly without enhancing the size of the SDK. 2 +1-669-206-2175 [email protected] thecompetenza.com Support for OpenTelemetry Metrics Microsoft has been adding support for OpenTelemetry to the recent .NET versions in order to aim at observability. In .NET 6, the tech giant added support for the OpenTelemetry Metrics API.
  2. 3 New Features Added More Roslyn Analyzers Roslyn analyzers help

    in inspecting the code of a given application development project to find issues related to style, quality and maintainability, and design. 4 +1-669-206-2175 [email protected] thecompetenza.com Inclusion of Compile-Time Source Generator The .NET development team has introduced a new source generator at compile time as part of System.Text.Json.
  3. 5 New Features Support for OpenSSL 3 OpenSSL is an

    open-source cryptography toolkit for TLS and SSL protocols. The .NET 6 will leverage OpenSSL 3 if it is available. Otherwise, the latest version of .Net will use OpenSSL 1.x. 6 +1-669-206-2175 [email protected] thecompetenza.com Enable WebSocket Compression Compression of information is imperative in data transfer via transmission protocol over the internet. Data compression helps in reducing storage space, transmission time, and communication bandwidth.
  4. Did you know? +1-669-206-2175 [email protected] thecompetenza.com “ .NET 6 Preview

    7 has been tested and is supported with Visual Studio 2022 Preview 3 “
  5. 7 New Features Removing Support for Older .NET Framework versions

    In .NET 6, Microsoft will remove the support for any framework that is older than the .NET Framework 4.6.1, .NET Core 3.1, .NET Standard 2.0 8 +1-669-206-2175 [email protected] thecompetenza.com Supports Socks Proxy Protocol SOCKS is an Internet protocol that facilitates transferring network packets between a client and server via a proxy server.
  6. 9 New Features Advancement in Microsoft.Extensions APIs In the .NET

    6 release, you will have an improvised version of Microsoft.Extensions APIs. The .NET team has worked on hosting & dependency injection. 10 +1-669-206-2175 [email protected] thecompetenza.com Enable Custom Guards for the Platform Compatibility analyzer To identify any custom guard possibilities, .NET engineers added new attributes SupportedOSPlatformGuard and UnsupportedOSPlatformGuard for annotating the custom guard members with the respective platform name and/or version.
  7. 11 New Features NuGet Package Validation Tool In .NET 6,

    a Package Validation tool is provided to NuGet library developers to check that their packages are consistent and well-created. 12 +1-669-206-2175 [email protected] thecompetenza.com Enable a Single Objective-C Interop The .NET team has been allowing support for Objective-C with the objective to have a single Objective-C interop implementation for .NET.
  8. 13 New Features .NET Hot Reload Available for ASP.NET Core

    & Blazor Projects Hot Reload allows developers to alter the source code of an application in the running state, without pausing manually or using a breakpoint. 14 +1-669-206-2175 [email protected] thecompetenza.com Interface Casting Improvement The performance of Interface casting has been scaled up by 16 percent to 38 percent, which is specifically helpful for C# pattern matching to and between interfaces.
  9. Did you know? +1-669-206-2175 [email protected] thecompetenza.com “ Both the .NET

    website and Bing.com have been running on .NET 6 since Preview 1.”
  10. 15 New Features Faster Handling of Struct Values in Dictionaries

    In .NET 6, a new unsafe API — CollectionsMarshal.GetValueRefOrNullRef — has been introduced to handle struct values in Dictionaries quicker. 16 +1-669-206-2175 [email protected] thecompetenza.com Addition of a New Collection- PriorityQueue A new collection – PriorityQueue<TElement, TPriority> (System.Collections.Generic) is introduced in .NET 6. This enables adding new items with a value and a priority.
  11. 17 New Features System.Text.Json – ReferenceHandler.IgnoreCycles In .NET 6, JsonSerializer

    (System.Text.Json) supports the ability to ignore cycles when carrying out a serialization process on an object graph. 18 +1-669-206-2175 [email protected] thecompetenza.com Improvement in Parsing of Standard Numeric Formats There is an improvement in the parser for the standard numeric types, particularly for .ToString and .TryFormat.
  12. 19 New Features Improving the client app development In .NET

    6, iOS, Android, and MacOS app development will be integrated into the .NET SDK and leverage .NET libraries. 20 +1-669-206-2175 [email protected] thecompetenza.com Improve .NET Inner Loop Performance New .NET version will assist application developers to be productive by optimizing the development tools and workflows that are repeatedly used for performing code modifications, building, and testing.
  13. Did you know? +1-669-206-2175 [email protected] thecompetenza.com “ The latest version

    of the C# extension for Visual Studio Code has been updated for .NET 6 Preview 7 and includes support for C# 10.”
  14. 21 New Features Monitor New SDK Versions with Version-Checking Command

    A new command- dotnet sdk check, is added to .NET 6. This new command will tell you about the latest available version of the .NET SDK and .NET Runtime. 22 +1-669-206-2175 [email protected] thecompetenza.com Single-File Bundles Support Compression In .NET 6, Single-file bundles support compression. This can be enabled by changing the property EnableCompressionInSingleFile to true. During runtime, files are in decompress mode.
  15. 23 New Features IL Trimming Warnings Enabled Trimming is a

    feature that was introduced in .NET Core 3.1 and 5.0. This feature in the .NET SDK analyzes the complete code of an application and eliminates all unused code before publishing an application. 24 +1-669-206-2175 [email protected] thecompetenza.com Crossgen2 Tool Crossgen is a tool that offers ahead-of-time (AOT) compilation for a code to minimize the requirement for JITing at runtime.
  16. 25 New Features Dynamic Profile Guided Optimization (PGO) PGO is

    a native compilation technology that assists developers to create more highly optimized code. 26 +1-669-206-2175 [email protected] thecompetenza.com .NET multi-platform app UI (.Net MAUI) .NET MAUI is a cross-platform UI toolkit, offering a single stack that supports all platforms- Android, iOS, macOS, and Windows.
  17. 27 New Features Build Blazor Desktop Apps In .NET 6,

    the tech giant is extending the support to create Blazor desktop apps. Blazor desktop allows developers to build hybrid client apps, which blend together web and native UI in a native client application. +1-669-206-2175 [email protected] thecompetenza.com