Fix more build errors. #391
Annotations
10 errors
Analyze:
src/AspNet/WebApi/src/Asp.Versioning.WebApi/ApplyContentTypeVersionActionFilter.cs#L35
'HttpRequestMessage' does not contain a definition for 'GetRequestedApiVersion' and no accessible extension method 'GetRequestedApiVersion' accepting a first argument of type 'HttpRequestMessage' could be found (are you missing a using directive or an assembly reference?)
|
Analyze:
src/AspNet/WebApi/src/Asp.Versioning.WebApi/Controllers/ApiVersionParameterBinding.cs#L33
'HttpRequestMessage' does not contain a definition for 'ApiVersionProperties' and no accessible extension method 'ApiVersionProperties' accepting a first argument of type 'HttpRequestMessage' could be found (are you missing a using directive or an assembly reference?)
|
Analyze:
src/AspNet/WebApi/src/Asp.Versioning.WebApi/Controllers/ApiVersionActionSelector.cs#L84
'HttpRequestMessage' does not contain a definition for 'GetRequestedApiVersion' and no accessible extension method 'GetRequestedApiVersion' accepting a first argument of type 'HttpRequestMessage' could be found (are you missing a using directive or an assembly reference?)
|
Analyze:
src/AspNet/WebApi/src/Asp.Versioning.WebApi/Routing/WithoutApiVersionUrlHelper.cs#L15
'HttpRequestMessage' does not contain a definition for 'ApiVersionProperties' and no accessible extension method 'ApiVersionProperties' accepting a first argument of type 'HttpRequestMessage' could be found (are you missing a using directive or an assembly reference?)
|
Analyze:
src/AspNet/WebApi/src/Asp.Versioning.WebApi/MediaTypeApiVersionReaderBuilder.cs#L60
The type or namespace name 'HttpRequestMessage' could not be found (are you missing a using directive or an assembly reference?)
|
Analyze:
src/AspNet/WebApi/src/Asp.Versioning.WebApi/Routing/ApiVersionUrlHelper.cs#L58
'HttpRequestMessage' does not contain a definition for 'ApiVersionProperties' and no accessible extension method 'ApiVersionProperties' accepting a first argument of type 'HttpRequestMessage' could be found (are you missing a using directive or an assembly reference?)
|
Analyze:
src/Client/src/Asp.Versioning.Http.Client/net8.0/DependencyInjection/IHttpClientBuilderExtensions.cs#L138
Change return type of method 'BuildFallbackNotification' from 'Asp.Versioning.Http.IApiNotification?' to 'Asp.Versioning.Http.ApiVersionHandlerLogger<Asp.Versioning.Http.ApiVersionHandler>?' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
|
Analyze:
src/AspNetCore/WebApi/src/Asp.Versioning.Http/Routing/ApiVersionLinkGenerator.cs#L72
Possible null reference argument for parameter 'scheme' in 'string? LinkGenerator.GetUriByAddress<TAddress>(TAddress address, RouteValueDictionary values, string scheme, HostString host, PathString pathBase = default(PathString), FragmentString fragment = default(FragmentString), LinkOptions? options = null)'.
|
Analyze:
src/AspNetCore/WebApi/src/Asp.Versioning.Http/ApiVersioningFeature.cs#L118
Cache a 'CompositeFormat' for repeated use in this formatting operation (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1863)
|
Analyze:
src/AspNetCore/WebApi/src/Asp.Versioning.Http/Http/HttpResponseExtensions.cs#L53
Use IHeaderDictionary.Append or the indexer to append or set headers. IDictionary.Add will throw an ArgumentException when attempting to add a duplicate key. (https://aka.ms/aspnet/analyzers)
|