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

82 Views Asked by At

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:

  • The [Add Service Reference] dialog
  • The Reference.svcmap

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

0

There are 0 best solutions below