Could not load assembly 'Autofac'

Hi everyone,

I decided to use Autofac for my dependencies injections.
I'm developing a Xamarin.Form app.
I installed Autofac through Nugget Package Manager in my PCL project (Xamarin.Form).

When I try to build, I get the following error :
Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Autofac, Version=, Culture=neutral. Perhaps it doesn't exist in** the Mono for Android profile**?
Nom de fichier : 'Autofac.dll'
à Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
à Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
à Xamarin.Android.Tasks.ResolveAssemblies.Execute() MyApp.Droid

I don't understand how my Xamarin.Android project require Autofac when I don't use it inside...

Could anyone help me with that?



Sign In or Register to comment.