Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to force svcutil use xml serialization instead runtime serialization

I'm using a service reference (the xsd visual studio tool) to generate a a cs (Reference.cs) in order to serialice and deserialice some classes but I need use System.Xml.Serialization instead System.Runtime.Serialization. how can i archieve this? I've been trying with some advanced options "like reuse types in referenced assemblies" and uncheck options but nothing.

Thanks in advance.

like image 637
MirlvsMaximvs Avatar asked May 11 '26 02:05

MirlvsMaximvs


1 Answers

From the documentation

/serializer:XmlSerializer

Generates data types that use the XmlSerializer for serialization and deserialization. Short Form: /ser:XmlSerializer

like image 63
Ben Robinson Avatar answered May 13 '26 16:05

Ben Robinson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!