Skip to content

Commit

Permalink
Disable AD0001 as workaround for analyzer bug
Browse files Browse the repository at this point in the history
The current version of .NET 8.0 contains a bug [1] in
`RouteHandlerAnalyzer` that causes it to throw
`InvalidOperationException` with message 'Failed to resolve well-known
type 'Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions' when
the application references any libraries that declare methods in the
`Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions` static
class.

A fix [2]  is expected [3] to be included in an upcoming .NET 8 patch
release.

[1] dotnet/aspnetcore#50836
[2] dotnet/aspnetcore#50969
[3] dotnet/aspnetcore#50836 (comment)
  • Loading branch information
smfeest committed Nov 19, 2023
1 parent 7f9f0ae commit 15c0ab8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Buttercup.Web/Buttercup.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<UserSecretsId>1b20fb70-92de-4af7-9518-6cfe3805821e</UserSecretsId>
<DefaultItemExcludes>$(DefaultItemExcludes);coverage/*;.prettierrc.json;package.json;package-lock.json;tsconfig.json</DefaultItemExcludes>
<NoWarn>$(NoWarn);AD0001</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bugsnag.AspNet.Core" Version="3.1.0" />
Expand Down

0 comments on commit 15c0ab8

Please sign in to comment.