Using Autofac DI/IoC Container in Xamarin.Forms iOS & Android Mobile Apps
Switch branches/tags
Nothing to show
Clone or download
Latest commit 122fa71 Oct 27, 2017

README.md

XamarinAutofac

Using Autofac DI/IoC Container in Xamarin.Forms iOS & Android Mobile Apps and UWP Fall Creators Update!

UPDATE

Added the MobileClient.UWP for Windows 10 Fall Creators Update. Must install Windows 10 SDK (16299.15). Here is the .csproj for the UWP project:

  <ItemGroup>
    <PackageReference Include="Autofac">
      <Version>4.6.2</Version>
    </PackageReference>
    <PackageReference Include="Autofac.Extras.CommonServiceLocator">
      <Version>5.0.0</Version>
    </PackageReference>
    <PackageReference Include="CommonServiceLocator">
      <Version>2.0.1</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
      <Version>6.0.1</Version>
    </PackageReference>
    <PackageReference Include="SomeExternalServices">
      <Version>1.0.0</Version>
    </PackageReference>
    <PackageReference Include="Xamarin.Forms">
      <Version>2.4.0.282</Version>
    </PackageReference>
  </ItemGroup>

Youtube: Demo of this source code

Twitter: @rizamarhaban