VS WCF integration has nice option "Reuse types in refrenced assemblies". The problem is that I need the same but for the current assembly. Some of the types are already defined in my assembly and I need to reuse them.
Usage scenario:
- I have assembly, and have TypeA here.
- I add Service Reference ot it, and one of the methods returns type that is fully compatible with TypeA(properties, name).
- Add Service Reference generates proxy, but it recreate new TypeA within.
On the step 3 I need proxy that will return TypeA. Not new TypeA.