AutoQueryable icon indicating copy to clipboard operation
AutoQueryable copied to clipboard

MissingMethodException in SwaggerGen AddAutoQueryable()

Open dapug opened this issue 7 years ago • 0 comments

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?

dapug avatar Jan 25 '19 02:01 dapug