Create the proxy using svcutil /reference:SharedLibrary.dll
. This way svcutil
won't generate classes that it finds in the SharedLibrary.dll
, so the client uses the class definitions from the assembly.
Don't forget to add a reference to the DLL in the client project, if you haven't already done so.