I found the problem. I leave the answer here for if it helps someone. We had a property like this:
/// <remarks/>
[XmlElement("EstimatedEndDateTime", typeof(System.DateTime), Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
[XmlElement("FinalizedEndDateTime", typeof(System.DateTime), Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
[XmlChoiceIdentifier("ItemElementName")]
public System.DateTime? Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}
I had to change the type in the XmlElement
attributes to be also System.DateTime?
. The weird thing is that it used to work with .Net 4.7.2.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…