1
Vote

Impossible to use XmlSerializer instead of DataConstractSerializer

description

In the WCF code generator dialog there is a check-box for DataContractSerializer. However, when generating the command line to run svcutil, an empty string is used if this check box was unchecked, resulting in the default serializer, which is also the DataContractSerializer.

Easiest fix would be to use "/ser:XmlSerializer" instead of empty string. A more proper fix would be to support all three svcutil options for serialization: Auto, DataContractSerializer and XmlSerializer.

comments