I am trying to follow this Microsoft tutorial with no luck. https://learn.microsoft.com/en-us/aspnet/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/create-an-odata-v4-endpoint . I created the web api project on visual studio 2017, and runned "Install-Package Microsoft.AspNet.Odata" on Package Manager Console, but I still get System.Web.OData namespace undefined ("The type or namespace Odata does not exist on 'System.Web'"). Any clue why is this happening?. The version of Odata installed is 7.0.1. Should I get another version?
2 Answers
See https://github.com/Microsoft/aspnet-api-versioning/issues/315:
With Microsoft.AspNet.OData v7.0, namespaces were changed from
System.Web.ODatatoMicrosoft.AspNet.OData.