RouteHandlerAnalyzer throwing exception. #52114
Labels
analyzer
Indicates an issue which is related to analyzer experience
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
Describe the bug
After upgrading my project to .NET 8 I'm getting tons of these two exceptions shown below when I do my
dotnet build
command. It compiles without errors, but I get tons of warnings.It's not giving me any info about where it comes from other than just the csproj file so I'm not sure how to make this reproducible for you.
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
CSC : warning AD0001: Analyzer 'Microsoft.AspNetCore.Analyzers.RouteEmbeddedLanguage.RoutePatternAnalyzer' threw an exception of type 'System.InvalidOperationException' with message 'Failed to resolve well-known type 'Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions'.'. [C:\Users\grosch\source\repos\newlamp\server\LaMP.API\LaMP.API.csproj]
CSC : warning AD0001: Analyzer 'Microsoft.AspNetCore.Analyzers.RouteHandlers.RouteHandlerAnalyzer' threw an exception of type 'System.InvalidOperationException' with message 'Failed to resolve well-known type 'Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions'.'. [C:\Users\grosch\source\repos\newlamp\server\LaMP.API\LaMP.API.csproj]
.NET Version
8.0.100
Anything else?
These are my list of references:
The text was updated successfully, but these errors were encountered: