Arvind Yadav
What's new in ASP.NET Core 6.0 ?

What’s new in ASP.NET Core 6.0 ?

By Arvind Yadav in .NET Core on Feb 12 2022
  • Suman Saini
    Apr, 2022 25

    .NET 6 is now released! ASP.NET Core in .NET 6 includes everything you need to build rich modern web UI and powerful back-end services.

    What’s new?
    Here’s a sampling of the great new features and improvements in ASP.NET Core for .NET 6:

    Hot reload: Apply changes to Razor, C#, and CSS source files into your running app during development without the need to rebuild and restart the app.
    Minimal APIs: Create a new ASP.NET Core app with just a few lines of code using the latest C# features and a simplified hosting model.
    Async streaming: Asynchronously stream data from the server without any need for buffering.
    IAsyncDisposable: Support for IAsyncDisposable on controllers, page models, and view components.
    Bootstrap 5.1: ASP.NET Core now comes with integrated Bootstrap 5.1 support.
    Null-state analysis: All ASP.NET Core templates now have C# null-state analysis enabled by default.
    CSS isolation for pages and views: Scope CSS styles to specific pages or views using .cshtml.css files.
    JavaScript modules: Place related JavaScript modules alongside pages, views, and components using .cshtml.js and .razor.js files.
    Blazor improvements:
    Render components from JavaScript
    Preserve prerendered state
    Error boundaries
    Custom event args
    Infer generic type parameters from ancestor components
    Required component parameters
    Handle query string parameters
    Control HTML head content
    JavaScript initializers
    Dynamically render components
    .NET WebAssembly build tools: Ahead-of-time (AOT) compilation for Blazor WebAssembly apps, as well as support for runtime relinking and native dependencies.
    Single-page apps: Built-in support for Angular 12 and React 17 based on a flexible template pattern that can be used with other popular frontend JavaScript frameworks.
    Socket control: More control over socket creation and handling.
    Strongly-typed headers: Accessing HTTP headers in a strongly-typed way.
    HTTP & W3C logging: Log HTTP traffic, and log using the W3C Extended Log File Format.
    HTTP/3 (Preview): Preview of server support for HTTP/3 based on the new QUIC transport.
    For a full list of everything that’s new in ASP.NET Core in .NET 6, check out the ASP.NET Core in .NET 6 release notes.

    Get started
    To get started with ASP.NET Core in .NET 6, install the .NET 6 SDK. .NET 6 is also included with Visual Studio 2022. Mac users should use the latest Visual Studio 2022 for Mac preview.

    Upgrade an existing project
    To upgrade an existing ASP.NET Core app from .NET 5 to .NET 6, follow the steps in Migrate from ASP.NET Core 5.0 to 6.0

    To upgrade an existing ASP.NET Core app from .NET 6 RC2 to .NET 6, update all package references to 6.0.0.

    That’s it! You should be all set to enjoy the benefits of .NET 6.

    • 1
  • Rosy Dam
    Sep, 2023 11

    @geometry dash That’s great news! .NET 6 brings several exciting features and improvements to ASP.NET Core.

    • 0
  • Sudarsana Varma
    Mar, 2022 22

    test

    • 0
  • sukanth gollamandala
    Feb, 2022 21

    This will helps u https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-6

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS