7.0.0 RC 1 #926
Locked
commonsensesoftware
started this conversation in
Show and tell
7.0.0 RC 1
#926
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The release candidate for .NET 7.0 is finally here. Barring any reported bugs, this should be the release. Big thanks to the early adopters that have tried things out and reported issues.
Fixes
ASP.NET Core
MapApiGroup
when usedWithOpenApi
(New WithOpenApi() methods breaks ASP.NET API Versioning #920)AddProblemDetails
in example projects (now required to retain defaultProblemDetails
behavior; new in .NET 7)ASP.NET Core with OData
Breaking Changes
There weren't any expected breaking changes, but there are some. #922 revealed that API versions were not collated as expected when building the route tree. Collation is split between Minimal APIs and traditional controllers. It is possible to have both. Previously,
EndpointDataSource
andIActionDescriptorCollectionProvider
would have been supplied via DI. Since theApiVersionMatcherPolicy
now only depends on Microsoft.AspNetCore.Routing this was a problem.6.3.1
subtly introducedIApiVersionMetadataCollationProvider
which provides an adapter of sorts overEndpointDataSource
andIActionDescriptorCollectionProvider
respectively, but allows them to be independently added to DI as you add those features in. This ultimately requires changing the constructor signature of a few types:ApiVersionMatcherPolicy
DefaultApiVersionDescriptionProvider
GroupedApiVersionDescriptionProvider
to add or replace their parameters with
IEnumerable<IApiVersionMetadataCollationProvider>
. In6.3.1
, some DI trickery was done with internal constructors to prevent breaking changes to the existing public surface area (though all the necessary extension pieces are public). Since7.0
is still in preview, now is the time to apply this change.Unless you are doing a lot of low-level customization or extensions, you probably won't notice these changes.
This discussion was created from the release 7.0.0 RC 1.
Beta Was this translation helpful? Give feedback.
All reactions