Xamarin.Auth: Xamarin.Auth 1.3.1 fails compilation due to PCLCrypto dependency not found

Steps to reproduce:

  1. Create a new Xamarin.Android app in Visual Studio
  2. Add Xamarin.Auth dependency (version 1.3.1)
  3. Compile the app

Expected result: The app can be compiled successfully.

Actual result: Compilation fails with this error

Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'PCLCrypto, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d4421c8a4786956c'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'PCLCrypto.dll'
   at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
   at Xamarin.Android.Tasks.ResolveAssemblies.Execute() LifecareLasna.Droid     

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 34 (14 by maintainers)

Most upvoted comments

@seancarroll I would suggest try uninstalling Xamarin.Auth, install the latest version of PCLCrypto, install the 1.3.X version of Xamarin.Auth, make sure everything compiles and runs, now update Xamarin.Auth.

I say that cause I originally had the 1.3.X version running fine and was able to successfully update to 1.4.1 just fine. Have not yet tried 1.5.0.

@moljac Yes this is ok on Android 👍