Skip to content

MissingMethodException in SwaggerGen AddAutoQueryable() #78

Description

@dapug

Can't launch the app, at runtime I get

MissingMethodException: Method not found: 'Void Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenOptions.OperationFilter(System.Object[])'.
AutoQueryable.AspNetCore.Swagger.SwaggerGenOptionsExtensions.AddAutoQueryable(SwaggerGenOptions swaggerGenOptions)
Celeb.Api.Startup+<>c.<ConfigureServices>b__5_10(SwaggerGenOptions c) in Startup.cs
+
                c.AddAutoQueryable();

Setup:
ASP.Net Core 2.2 project
AutoQueryable.AspNetCore.Filter 2.0.5-beta
AutoQueryable.AspNetCore.Swagger 2.0.5-beta
AutoQueryable.AspNetCore.DependencyInjection 2.0.5-beta

One thing I noticed, BTW, is that AutoQueryable.AspNetCore.Swagger 1.0.0 would not install with AutoQueryable.AspNetCore.Filter 1.7.0, so I updated everything to 2.0.5-beta.

Followed the config steps exactly, compiles fine, but no love at runtime. Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions