I am calling the following constructor:
var serializer = new XmlSerializer(typeof(List<Slot>));
and end up with this exception in the log :
Unable to resolve assembly System.Private.CoreLib.XmlSerializers,
Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e,
processorArchitecture=AMD64
I noticed this post but since it’s not exactly the same exception, I don’t know if that is the same issue.
Using the below code avoid to have the exception so I guess it is the same issue but I would like a confirmation:
var serializer = XmlSerializer.FromTypes(new[] { typeof(List<Slot>) })[0];
I was not able to find anything on System.Private.CoreLib.XmlSerializers online.
I also gave a try to the XML Serializer Generator solution but since the code is not looking for myapplication.XmlSerializers I guess it does not help.
Any insight/idea/explanation is more than welcome.
Thanks