Hey Everyone.
I am trying to port an old XNA project to Mono and everything except the Content Serializer has worked without problems.
From what I see, it looks like the “ContentSerializerIgnore” compiler flag is not respected.
When I try to compile the following xml file:
<?xml version="1.0" encoding="utf-8" ?>
<XnaContent>
<!-- TODO: replace this Asset with your own XML asset data. -->
<Asset Type="Placeholder.Class1">
<AAA>hjgfgjh</AAA>
</Asset>
</XnaContent>
to match Class1
namespace Placeholder
{
public class Class1
{
public string AAA = "MaString";
[ContentSerializerIgnore]
public int BBB = 11;
}
}
the following compiler error is displayed.
Error 1 XML element "BBB" not found
How can I work around this? Is there a fix?