All the docs I've read to date suggest you can do web service libraries from a Portable Class Library, they all state that:
Are available for use fro things like "WebGet" attributes and other WCF Rest features.
However When I try and reference the namespace it says it's not available and browsing in code does not show the namespace.
I would normally take this to mean it's not available in a portable class library but the namespace is visible in the Object Browser.
I've even tried limiting the frameworks I'm targeting to just:
But no Joy. Even just using SL5 and .NET 4.5 still doesn't expose the namespace
Any ideas?
The answer quite simply is NO
You can all all the basic [DataContract] / [ServiceOperation] / [DataMember] attributes in a PCL project but you cannot put Rest Implementation attributes on anything.
The simple answer to to provide as much as you can for attributes in the PCL and then apply the Rest attributes in your concrete implementation (does need to live in the PCL)
Also of note, a lot of the serialisable tags are lost when you use a PCL, so be use to add [DataContract] [DataMember] attributes to all of your models and properties else you will have issues I have found.