Is Dependency Injection not supported by IOS in .Net MAUI

Sanjay Kumar Jha 151 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

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,845 questions
{count} votes