wcf - Visual Studio project type for DTOs that should be accessible in Silverlight -


Which VS The project type should be selected so that the data-transfer objects that I create in it can be accessed in both my Silverlight project as well as my WCF service project.

(Instead of making VS in my CRLLITE project, I want to be able to reuse the DTO defined in both projects, reference to the web service for the WCF service).

IE, my question is, can this project be a Windows class library, or should it be a Silverlight Class Library (so that my Silverlight project as well as WCF project).

You have three main options:

  1. Two Share the files between class library projects (targeting a silverlight, other .NET framework), and files between them, as I discuss in this article:

  2. Create your class library as a silverlight class library. SerialLite applications can not complete class libraries which are full .NET frames Target Rk, but the full .NET Framework (such as Dblusif service) refers to applications that target class libraries (typically) which target the Silverlight runtime.

  3. Try portable library equipment (currently in beta):

    Do you have access to RIA services Instead of using a plain WCF service? RIA Services / WCF Data Services manages this problem for you, and adds other major functionality to the mix.

    Hope this helps ...

    Chris Anderson

Comments