UPDATE (October 27, 2017)
Added MobileClient.UWP
Project that support forĀ Windows 10 Fall Creators Update, Build 16299.15. Here is the reference on .csproj
for the UWP project:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<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> |
I have updated the source code on GitHub as well. Enjoy!
On Windows 10 Fall Creators Update:
On Android:
Below is the video on Youtube, showing how to use Autofac DI/IoC Container in Xamarin.Forms iOS & Android Mobile Apps. Just easy and simple.
Source Code:
https://github.com/rizamarhaban/XamarinAutofac
Enjoy!