Search code examples
c#wcfsilverlightwcf-ria-servicesclass-library

How to use same class library on WCF and Silverlight application


Hi I would like to use the same class library from my Silverlight application and WCF based service. I created a Silverlight C# class library and found the WCF service does not allow adding reference to Silverlight Project types. So

  • What should i do to make this work?

  • Can Silverlight invoke methods on Silverlight Class library if it communicates with WCF service?

  • Is silverlight always this hard?


Solution

  • Portable Class Library

    http://msdn.microsoft.com/en-us/library/gg597391.aspx