Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingMethodException in SwaggerGen AddAutoQueryable() #78

Open
dapug opened this issue Jan 25, 2019 · 0 comments
Open

MissingMethodException in SwaggerGen AddAutoQueryable() #78

dapug opened this issue Jan 25, 2019 · 0 comments

Comments

@dapug
Copy link

dapug commented Jan 25, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant