Martin Mulder
Martin Mulder

Reputation: 12934

Does Visual Studio's [Add Service Reference] an option for Data Contracts Only?

I am trying to add a service reference to my C#-project. The service reference points to an WSDL. But I only want the Data Contract classes. I do not need the Service contract classes/interface (in this project file).

Using "svcutil.exe" I can use the "/datacontractonly" option. How can I do the same from Visual Studio?

I have been searching in:

So far no luck. Does anyone know a way to make Visual Studio only import the Data Contract, without several command line utilities.

Upvotes: 0

Views: 96

Answers (0)

Related Questions