Dependency injection fails for Android #20453
Unanswered
plavoie-nms
asked this question in
Q&A
Replies: 3 comments
-
Does this happen in Debug builds also, or just Release? This could be related to 'trimming' which is used for Android builds to remove unused parts of the code to create smaller app sizes. You could try turning it off in the project settings to see if that is the cause. Info here: https://learn.microsoft.com/dotnet/maui/deployment/visual-studio-properties?view=net-maui-8.0 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I only tried in debug mode. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I got the same problem. Are there any news ? |
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
-
Description
I have this simplified MediatR IPipelineBehavior in a MAUI project:
DI:
It works perfectly in Windows, but when running it in Android, I get this error:
Call stack:
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.6
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions