UWP XmlSerializer PlatformNotSupportedException
问题 I'm using XmlSerializer in a UWP project. It works fine when compiled for debug but throws PlatformNotSupportedException in release. I've written a simple example C# program to illustrate this. I have not edited any project settings from what VS 2017 has given me. I have a simple SampleData.xml file in the project as Content. I have classes called SampleItemsForSerialization along with SampleItemList and SampleItem, all marked up to be able to serialize the xml file. In another class I have