DependencyService - Strange problem

fireman321fireman321 ITMember ✭✭

Hi, i have an iOS Project that reference two a .NET standard 2 project (A and B).
I want to call a class method of Project B from project A with command: DependencyService.Get().myMethod();
When this command is reached, this error happens: System.NullReferenceException: Object reference not set to an instance of an object.
No errors if an Android Project reference project A and B.
No errors if project A call method of class stored directly in iOS Project, using DependencyService.
Can you help me?
Thanks

Sign In or Register to comment.