I am porting an old .NET 2.0 Library to a portable .NET Project. Target of the Project is Windows 8.1.
My Library contains some classes which were generated by the XSD Tool by a XSD schema definition. Theses classes contain the [Serializable]
Attribute which is not allowed for Windows Store Apps. I read that I have to use
the Attributes [DataContract]
and [DataMember]
instead. I tried to regenerate the classes from the xsd schema again with the xsd tool which comes with Visual Studio 2015 but without success. It still generated the classes
with the [Serializable]
Attribute. I used the following command
xsd myschema.xsd /c
So can I generate classes from xsd schema which are valid for Windows Store Apps?
Regards
Michael