Aspnet-api-versioning: The type name 'IApiVersionDescriptionProvider' could not be found

Created on 10 Jan 2019  路  3Comments  路  Source: microsoft/aspnet-api-versioning

c# using Microsoft.AspNetCore.Mvc.ApiExplorer; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen;

I was defined as above, but I am getting an error to below code.

screen shot 2019-01-10 at 08 13 57

asp.net core question

Most helpful comment

Spot on @Discjoggy.

You'll want to make sure you've included the packages:

  • Microsoft.AspNetCore.Mvc.Versioning
  • Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer

I hope that helps.

All 3 comments

Is Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer referenced in your project? It looks like this reference could not be solved because this package is missing.

Spot on @Discjoggy.

You'll want to make sure you've included the packages:

  • Microsoft.AspNetCore.Mvc.Versioning
  • Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer

I hope that helps.

Is Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer referenced in your project? It looks like this reference could not be solved because this package is missing.

The problem was solved when I include Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer reference. Thank you everyone.

Was this page helpful?
0 / 5 - 0 ratings