Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to port a Web API I wrote in ASP.Net 4.5.2 to ASP.Net 5 for the cross platform support, which turns out to be a critical issue. In my former web api I implemented an OData solution, but when trying to port my web api to ASP.Net 5 I was unable to use System.Web let alone System.Web.OData in my project even after using NuGet to download the latest version of OData. I'm wondering if OData is even supported in 5, and if it's any different than in 4.5.2. Thanks

What I have tried:

I've tried searching all over the internet to see if I could find anything about OData support in ASP.Net 5, but I couldn't find anything
Posted

1 solution

There is no need for System.web in ASP.Net 5.
You need to use .Net core instead.

Alternately, switch back to version 4.5.2.

References -
ScottGu's Blog - Introducing ASP.NET 5[^].
Top 10 Changes in ASP.NET 5 and MVC 6 | Stephen Walther[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900