I am trying to share classes between my server and client by using a common dll. The client and server communicate via WCF services. When I add/configure the service reference via visual studio the types are not being picked up from the dll. Instead new auto-generated copies are being created and used in the service reference. I have the reuse types un specified referenced assemblies checked and I have my dll checked. If I create the service reference via the svcutil and reference the dll from the bin folder from my client the generated code uses the classes from the dll instead of creating new types which is what I want.
I can't understand why adding the service reference via Visual Studio is different to using the svcutil. I have tried to find some sort of log/output from the service generation from Visual Studio but I have had no luck. I have tried this in both VS 2012 and VS 2015 Has anyone seen a similar issue to this before, or have any suggestions on what else I can try?