So, locally, I am successfully able to serialize/de-serialize my object which has a Field with a private setter. Now, when I move this same code to other machines, as-is, code runs successfully. However, when I build an msi from this code, in RELEASE mode, the serializer is unable to handle the de-serialization of the very same field in my object. Is there a particular reason why this behavior exists or is allowed?
public class ParentObject
{
[XmlArray("ChildObjects"), XmlArrayItem("ChildObject")]
public List<ChildObject> ChildObjects{ get; private set; }
}