Obsoleted and removed APIs
Several APIs have been either removed or marked as obsolete.
Version introduced
ASP.NET Core 6.0
Old behavior
In ASP.NET Core 5.0 and previous versions, the APIs weren't removed or obsolete.
New behavior
The APIs are removed or obsoleted.
Reason for change
The APIs are either no longer used or don't function anymore.
Recommended action
Use the recommended replacement APIs.
Affected APIs
- Removed Microsoft.AspNetCore.Http.Connections.NegotiateProtocol.ParseResponse. Use NegotiateProtocol.ParseResponse(ReadOnlySpan<Byte>) instead.
- Removed Microsoft.AspNetCore.SignalR.HubInvocationContext. Use HubInvocationContext.HubInvocationContext(HubCallerContext, IServiceProvider, Hub, MethodInfo, IReadOnlyList<Object>) instead.
- Removed Microsoft.AspNetCore.Http.Features.IHttpBufferingFeature. Use Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature instead.
- Removed Microsoft.AspNetCore.Http.Features.IHttpSendFileFeature. Use Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature instead.
- Removed argument-less constructor of Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext. Use StaticFileResponseContext.StaticFileResponseContext(HttpContext, IFileInfo) instead.
- Removed the constructor Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor. Use ObjectResultExecutor.ObjectResultExecutor(OutputFormatterSelector, IHttpResponseStreamWriterFactory, ILoggerFactory, IOptions<MvcOptions>) instead.
- Removed Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor.AllowShortCircuitingValidationWhenNoValidatorsArePresent.
- Removed Microsoft.AspNetCore.Mvc.ViewFeatures.ViewComponentResultExecutor. Use ViewComponentResultExecutor.ViewComponentResultExecutor(IOptions<MvcViewOptions>, ILoggerFactory, HtmlEncoder, IModelMetadataProvider, ITempDataDictionaryFactory, IHttpResponseStreamWriterFactory) instead.
- Obsoleted CompatibilityVersion
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.