-
Notifications
You must be signed in to change notification settings - Fork 510
XML DeSerializazion error #7541
Comments
XML deserialization is trying to use reflection on something that wasn't precompiled. This is possible to solve with RD.XML. See some of the relevant discussion here (and in other issues mentioning this exception): #6477 (comment) |
@hhblaze I’m having the exact same problem, but can’t figure out what to set in rd.xml. Could you share your solution? Thanks! |
Well @acarrau , I found rd.xml containing <Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<Assembly Name="MyAssemblyName" Serialize="All">
</Assembly>
</Application>
</Directives> having as an output also, rd.xml resides on the same level as Program.cs (looks like no other special actions with it in the project) |
Thanks for answering. It didn't work for me to include the assembly tag with Serialize="All". Had to add the specific generic method in rd.xml for System.Private.Xml as in the exception message. See #8186 (comment) In the end adding my assembly was not even necessary. |
Only after running native executable (standard .NetCore works)
Result:
The text was updated successfully, but these errors were encountered: