I am developing a .NET application that will have both WinForms and Silverlight client. Although most of the code will be on the server, I also need to have quite a bit of logic in the clients, and I would like to leave the client library code the same.
From what I could guess so far, I need to have two different types of projects: a class library and a Silverlight class library, and link files from one project to another. This seems a bit lame, but it works for simple code.
My problem is that the code generated by SVCUtil.exe to access WCF services is different from the code generated by slsvcutil.exe , and the silverlight code is actually not compatible with .NET: I get a bunch of problems with the System.ServiceModel.Channel classes when I try to import a class in .NET.
Has anyone done anything like this before? What am I doing wrong?
source
share