Reputation: 370
I meet this error in a Xamarin.forms project using WebView and local html base url:
Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile? Nom de fichier : 'System.Drawing.dll' à Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) à Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel) à Xamarin.Android.Tasks.ResolveAssemblies.Execute() Almicantarat.Droid
I read that: System.IO.FileNotFoundException: Could not load assembly System.Web in Mono for Android but I don't know which client's source code I should compile.
I read that: Could not load file or assembly 'System.Drawing, Version=4.0.0.0 but in my project, there is no reference to System.Drawing !!
See my references: my android project references
Upvotes: 0
Views: 2550
Reputation: 370
Solved:
-> Close the solution
-> Delete all contents of the Packages folder (all the DLL's referenced through Nuget)
-> Restart the solution
-> Build (this will cause Nuget to get all DLL's again based on the packages.config)
Upvotes: 1