I've got an interface in a portable class library with code analysis on build enabled. When I mark it with ServceContract and OperationContract for a WCF service, it starts throwing build errors from code analysis.
Assembly reference cannot be resolved: System.ServiceModel, Version=2.0.5.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35, Retargetable=Yes
The library is targeting .Net 4.5 and Silverlight 5.
Am I missing something?