Reputation: 3924
How to avoid duplicating data contracts when adding service reference to project? and if there's no way to do this, which classes should I use, duplicated from service proxy or classes which I have referenced to project in usual way?
thanks in advance :)
Upvotes: 0
Views: 222
Reputation: 50672
When you set a service reference you can select the assemblies that contain type that you want to reuse in the Configure Service Reference Dialog Box
Upvotes: 1
Reputation: 5641
You could use /sharetypes option for the wsdl
tool
wsdl [options] {URL | path}
wsdl /sharetypes http://myfooservice C:\foobar\
Upvotes: 1