Skip to content

Is .NET 5 supported? #714

Closed
Closed
@Kronos11

Description

@Kronos11

So .NET 5 has been out since November, as far as I can tell it will not work properly with OData, Swagger, and Api-Versioning.

Background:
I have a netcoreapp3.1 project that has been running with the following libraries
Microsoft.AspNetCore.OData.Versioning 4.1.1
Microsoft.AspNetCore.OData.Versioning.ApiExplorer 4.1.1

I have 3 groups of controllers

v1 - that is using ControllerBase
v1.1 - that is using a mix of ODataController and ControllerBase
v1.2 - that is using ODataController

this has all worked correctly for the most part and we have tests around everything, exercising the different scenarios.
We are only using attribute routing ie: api-version=1.1 etc...

We are updating our services to .NET 5 and I have done the following:

  • Update Microsoft.AspNetCore.OData.Versioning to 5.0.0
  • Update Microsoft.AspNetCore.OData.Versioning.ApiExplorer to 5.0.0
  • Update other Microsoft libraries to 5.0.0 (if applicable)

What i'm seeing is that all of my OData test routes are no longer working using the route attributes (api-version=1.1)
etc..
Is this expected to work or am I too early on getting this integrated in to .NET 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions