I'm trying to build a portable class library targeting .NET, Silverlight, Windows RT and Windows Phone that acts as an OData client. I'm using Visual Studio 2012.
When I created the service reference to my OData server side, I got the following error message:
Unable to add a service reference to the specified OData feed because WCF Data Services is not installed for this target framework. To install a supported version of WCF Data Services, see http://go.microsoft.com/fwlink/?LinkId=253653.
When I go to the URL listed in the error message, I can choose between a library for Windows RT and one for Windows Phone, so this does not seem to work for a portable class library.
Is there any secret workaround to this, or do I have to code my own Odata client with bare HTTP requests?
Also, if I do have to use bare HTTP Requests, is there at least some kind of API I can build on for JSON or XML serialization / deserialization that works inside a portable class library?