I have two ServiceContracts implemented as interfaces. I want to export the metadata for only one of them. The trick is that both interfaces are implemented by the same class. Therefore, I don’t think that I can use /excludeTypes. Please include example syntax when answering. Thanks!
EDIT: A co-worker recently asked me why this is necessary. The reason why is that the first ServiceContract is for a REST service, which it doesn’t make sense to export metadata for. So I get two wsdl and xsd files generated, distinguishable only because the second filename is appended with “1”. This makes tooling difficult, and adds more clutter to the output directory.
I’ve added a bounty to try and generate interest in this question.
I created a Service Contract class implementing 2 Interfaces like you described.
when running svcutil normally, I get a wsdl with methods from the 2 interfaces
when I run svcutil with /excludeType:IREST for example, I get only IInterface methods.
are you using the same configuration? In that case
/excludeTypeworks.