Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ASP.NET Core updates in .NET 6 Preview 1

#1
ASP.NET Core updates in .NET 6 Preview 1

Avatar

Sourabh

.NET 6 Preview 1 is now available and ready for evaluation. This is the first preview of .NET 6, the next major update to the .NET platform. .NET 6 is expected to ship in November of this year, and will be a Long Term Support (LTS) release.

If you’re on Windows using Visual Studio, we recommend installing the latest preview of Visual Studio 2019 16.9. If you’re on macOS, we recommend installing the latest preview of Visual Studio 2019 for Mac 8.9.

Major work planned in ASP.NET Core in .NET 6


.NET 6 is using an open planning process, so you can see all of the major themes planned for this release on the Blazor-based themesof.net website. In addition to these top-level themes, we expect to deliver many user driven improvements to the platform as well. You can find a list of the major work planned for ASP.NET Core in .NET 6 in our roadmap issue. Here’s a sampling of some of the major ASP.NET Core features planned for the .NET 6 release:

We welcome feedback and participation in the planning and design process on GitHub.

What’s new in ASP.NET Core in .NET 6 Preview 1?


  • Support for IAsyncDisposable in MVC
  • DynamicComponent
  • Input ElementReference exposed on relevant components
  • dotnet watch now does dotnet watch run by default
  • Nullable reference type annotations

Get started


To get started with ASP.NET Core in .NET 6 Preview 1 install the .NET 6 SDK.

Upgrade an existing project


To upgrade an existing ASP.NET Core app from .NET 5 to .NET 6 Preview 1:

  • Update the target framework for your app to net6.0.
  • Update all Microsoft.AspNetCore.* package references to 6.0.0-preview.1.*.
  • Update all Microsoft.Extensions.* package references to 6.0.0-preview.1.*.

See the full list of breaking changes in ASP.NET Core for .NET 6.

Support for IAsyncDisposable in MVC


You can now implement IAsyncDisposable on controllers, page models, and view components to asynchronously dispose of resources.

DynamicComponent


DynamicComponent is a new built-in Blazor component that can be used to dynamically render a component specified by type.

<DynamicComponent Type="@someType" />

Parameters can be passed to the rendered component using a dictionary:

<DynamicComponent Type="@someType" Parameters="@myDictionaryOfParameters" /> @code { Type someType = ... IDictionary<string, object> myDictionaryOfParameters = ...
}

Input ElementReference exposed on relevant components


The relevant built-in input Blazor components now expose a convenient ElementReference to the underlying input, which simplifies common scenarios like setting the UI focus on the input. The affected components are InputCheckbox, InputDate, InputFile, InputNumber, InputSelect, InputText, and InputTextArea.

dotnet watch now does dotnet watch run by default


Running dotnet watch will now run dotnet watch run default, saving on precious typing time.

Nullable Reference Type Annotations


We have been applying nullability annotations to parts of ASP.NET Core. A significant number of new APIs were annotated in .NET 6 Preview 1.

By utilizing the new feature in C# 8, ASP.NET Core can provide additional compile-time safety in the handling of reference types like protecting against null reference exceptions. Projects that have opted in to using nullable annotationes may see new build-time warnings from ASP.NET Core APIs.

To enable nullable reference types, you can add the following property to your project file:

<PropertyGroup> <Nullable>enable</Nullable>
</PropertyGroup>

For more information, see Nullable reference types.

Give feedback


We hope you enjoy this first preview release of ASP.NET Core in .NET 6. We are eager to hear about your experiences with this release. Let us know what you think by filing issues on GitHub.

Thanks for trying out ASP.NET Core!



https://www.sickgaming.net/blog/2021/02/...preview-1/
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating Discoverable HTTP APIs with ASP.NET Core 5 Web API xSicKxBot 0 37 02-05-2021, 02:35 AM
Last Post: xSicKxBot
  Announcing ASP.NET Core in .NET 5 xSicKxBot 0 123 11-11-2020, 10:30 PM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Release Candidate 2 xSicKxBot 0 149 10-14-2020, 05:15 PM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Release Candidate 1 xSicKxBot 0 171 09-16-2020, 06:05 PM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 8 xSicKxBot 0 185 09-11-2020, 05:43 AM
Last Post: xSicKxBot
  ASP.NET Core Updates in .NET 5 Preview 7 xSicKxBot 0 166 09-10-2020, 03:56 PM
Last Post: xSicKxBot
  Orchard Core Release Candidate 2 now available xSicKxBot 0 161 09-10-2020, 02:35 AM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 6 xSicKxBot 0 183 09-09-2020, 08:34 PM
Last Post: xSicKxBot
  Introducing “Web Live Preview” xSicKxBot 0 154 09-09-2020, 03:48 AM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 5 xSicKxBot 0 145 09-08-2020, 09:30 PM
Last Post: xSicKxBot

Forum Jump:

[-]
Active Threads
News - Don’t forget to take the GDC 2021...
Last Post: xSicKxBot
Today 02:42 AM
» Replies: 0
» Views: 1
How to get free CS - GO Skins!
Last Post: Augustgeows
Today 01:30 AM
» Replies: 13
» Views: 12624
News - A New Patch For Bloodstained: Rit...
Last Post: xSicKxBot
Yesterday 09:39 PM
» Replies: 0
» Views: 3
News - Best Mario Day Deals: Super Mario...
Last Post: xSicKxBot
Yesterday 09:39 PM
» Replies: 0
» Views: 5
[Tut] How To Run Multiple Python Version...
Last Post: xSicKxBot
Yesterday 03:30 PM
» Replies: 0
» Views: 7
(Indie Deal) 3dSen PC & VR, Human Fall F...
Last Post: xSicKxBot
Yesterday 03:30 PM
» Replies: 0
» Views: 5
Unreal Engine Coming To A Cloud Near You
Last Post: xSicKxBot
Yesterday 09:39 AM
» Replies: 0
» Views: 5
[Tut] Python iter() — A Simple Illustrat...
Last Post: xSicKxBot
Yesterday 12:28 AM
» Replies: 0
» Views: 7
(Indie Deal) Warhammer: Chaosbane, WRC 9...
Last Post: xSicKxBot
Yesterday 12:28 AM
» Replies: 0
» Views: 6
News - Introducing the Bungie Tech Blog
Last Post: xSicKxBot
Yesterday 12:27 AM
» Replies: 0
» Views: 6

[-]
Twitter

[-]
Sponsored
Get the Deal of the Week at RefurBees.com

Copyright © SickGaming.net 2012-2020