TwoStick has uploaded a patch.
Description:
Since we can get in here if the TargetFramework is Silverlight, we need to check again to see
if the GenerateXmlAttributes is actually True. Is so, Silverlight needs the other attributes to properly
serialize XML so it can be compatible with generated XML from a regular C#, .Net (2.0+) application
(that also use the Serialization.GenerateXmlAttributes support).
Silverlight doesn't support the two I left in, so we remove those.
If we aren't wanting to GenerateXMLAttributes when TF=Silverlight, then we remove all the attrib. markers.