locked
Xamarin.Forms - Dependency Injection - Autofac, Ninject etc.. RRS feed

  • Question

  • User29741 posted

    I'm trying to use a dependency injector like Autofac or Ninject with Xamarin.Forms, but they all now based on .NET Standard. I like the idea of .NET Standard, but they are incompatible to Xamarin.Forms on a Mac. I also try to create a .NET Standard Library in Visual Studio on Windows, but the current state looks to me very buggy and not usable.

    What dependency injector are you using and which version? Does anyone have more success with .NET standard, dependency injector and Xamarin.Forms on a Mac?

    Thanks Marcel

    Tuesday, November 22, 2016 6:10 PM

Answers

  • User37696 posted

    @MarcelMalik,

    I don't have experience with a solution to this. However, would you be able to use an older NuGet package of these tools, before it was converted to use .NET Standard libs? Otherwise, this might help workaround the issue in the meantime.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, November 22, 2016 8:51 PM