Skip to content

ApiVersioning package is incompatible with Microsoft.AspNet.OData v7+ #376

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

Closed
robvangeloven opened this issue Oct 18, 2018 · 1 comment
Closed
Assignees

Comments

@robvangeloven
Copy link

Upgrading to Microsoft.AspNet.OData v7 will break the ApiVersioning code (specifically 'MapVersionedODataRoutes') with the error "The type 'ODataRoute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.OData, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

@commonsensesoftware
Copy link
Collaborator

Honestly, I've been a little laissez-faire with restricting the versions used by dependent packages. I plan to rectify that for all packages in all future releases. The OData libraries, in particular, are notorious for introducing significant breaking changes. This makes it difficult for both me and the customers. I simply don't have capacity to support 3+ flavors of the OData libraries.

If you require an official package, then you are stuck with OData 6.x and API versioning 2.x. For the latest and greatest, you can use API versioning 3.0, which is currently in beta, but targets OData 7.0. I'm working to get out Beta 2 as quickly as possible. The main changes in OData support for API versioning 3.0 is support OData 7.0, which is largely only namespace changes in OData. There aren't a bunch of changes or new features. Despite the beta label, you should expect the API versioning package to be stable and working with the same quality as 2.x.

I hope that clarifies things and unblocks you for the time being. I'll use this issue to track clipping dependent package references to their major versions. Thanks.

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

No branches or pull requests

2 participants