When working with AOT platforms, like Xbox One is for example, you need to generate an AOTClasses file from within the Preferred Types Editor window. Simply open up the Preferred Types Editor window and hit the “Generate AOTClasses.cs and link.xml Files” button.
Please check out this documentation link for more information: [LINK]