Replies: 2 comments 4 replies
-
You need to configure your project to not trim the missing method. |
Beta Was this translation helpful? Give feedback.
4 replies
-
I struggled with this in blazor for .net 7.0. The following is how i fixed it ... Project.csproj <ItemGroup>
<EmbeddedResource Include="./../ILLink.Descriptors.xml">
<LogicalName>ILLink.Descriptors.xml</LogicalName>
</EmbeddedResource>
</ItemGroup> ILLink.Descriptors.xml <linker>
<assembly fullname="AutoMapper" preserve="all" />
<assembly fullname="System.Runtime">
<type fullname="System.Enum" preserve="all" />
</assembly>
</linker> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Seen in the wild at ppy/osu#20614 (this app is using
monoandroid10.0
).Seems to be caused by trimming/optimization that is done on Android Release builds.
The method
Enum.Parse<TEnum>(string, bool)
(fetched by AutoMapper via reflection) seems to be missing.Version: 12.0.0
Expected behavior
Using AutoMapper shouldn't crash the app.
Actual behavior
Using any part of AutoMapper crashes the app with the following stack trace.
Steps to reproduce
MainActivity.cs
:Release
on a deviceSteps to fix this issue (any will work)
Beta Was this translation helpful? Give feedback.
All reactions