I have the following
[XmlType("Settings")] public class Settings { [XmlElement("Directory")] public string Directory { get; set; } public Settings() { Directory = "/" } }
But when my program is obfuscated it complains about it not being CLS-compliant. I thought declaring the names in an attribute would work but apparently not. Is there a way to fix this without excluding it from obfuscating? Also how do you remove the stuff like
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"