Is Dependency Injection not supported by IOS in .Net MAUI

Sanjay Kumar Jha 156 Reputation points
2022-09-01T10:13:58.247+00:00

Hi,

I am using constructor dependency in my ViewModel.it is working fine for Android version but when I use the same code for IOS devices, it crashes. Parameters less constructor works but not constructor with dependency injection. also when I try to run the code in my iPhone using window OS it got crashes.
attaching screenshot for help.

236898-iosdependency-issue.png

Developer technologies | .NET | .NET MAUI
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.