Closed
Description
- Update the target framework for your app to
net6.0
and update packages to6.0.0
. - Fix nullable reference type annotation errors
- Look into simplifying API template using Mi.cro API's. How does this work with Swashbuckle?
- Add HTTP/3 support
- dotnet watch now does dotnet watch run by default.
- Enable hot reload.
{
"profiles": {
"dotnet": {
"commandName": "Project",
"hotReloadProfile": "aspnetcore"
}
}
}
- Add
dotnetRunMessages
tolaunchSettings.json
https://github.com/dotnet/sdk/issues/14656. - Switch to
DateOnly
andTimeOnly
structs Introduce Date and Time only structs dotnet/runtime#49036. - Use
TryGetNonEnumeratedCount
forBoxed.Mapping
What's new in .NET 6 Preview 4 dotnet/core#6098 (comment). - Use
LoggerMessageAttribute
for faster logging performance Add LoggerMessage.Define overload to disable IsEnabled check dotnet/runtime#45290. - Use
ValidateOnStart
to validate configuration options on startup Developers can get immediate feedback on validation problems dotnet/runtime#36391. - Use new
app.Use
overload Add new Use middleware extension method dotnet/aspnetcore#31784. - Use new API's to get HTTP headers.
- Use
CreateAsyncScope
instead ofCreateScope
. - Add Open Telemetry Metrics.
- Consider use of
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
. - Use IHttpActivityFeature to get the current
Activity
. - Add System.Text.Json Source Generators.
- Call configuration.GetRequiredSection("Foo").
- Use
ArgumentNullException.ThrowIfNull(foo)
. - Use new minimal hosting and
ConfigurationManager
API for quicker startup. - Developer exception page is now registered for you.
- Add embedded README in NuGet package.
- Use
readonly record
instead ofrecord
. - Search for potential const interpolated string usages e.g.
static readonly Foo = $"{a}{b}"
can be rewritten as const Foo = $"{a}{b}" if botha
andb
are constants. - Enable
ImplicitUsings
.