When I use svcutil or some other proxy generator it creates appropriate classes in client. I wonder what is the best way to store this classes to avoid conflicts.
- In some other “Common” project and remove generated classes from proxy?
- Or just use original classes in service and theese duplicated in proxy?
There are two ways to handle the code for service and data contract classes WCF clients.
/reference:<file path>option to tell svcutil to reuse the types from an existing assembly instead of regenerating them.If you reference the origin assembly, without passing it with
/referenceto svcutil you’ll end up with a mess of conflicts. I guess that’s what happened to you.