Tuesday, January 20, 2015

Cannot resolve dependency after updating Xamarin Forms to 1.3.1.6296

If you're updating Xamarin.Forms to 1.3.1.6296 and get errors simular to this one:

Cannot resolve dependency to assembly 'Xamarin.Forms.Platform.WP8, Version=1.2.3.0, Culture=neutral, PublicKeyToken=null' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.

Two ways around this.

Downgrade Xamarin Forms (to pre-release)

The first way is to downgrade to Xamarin.Forms.1.3.0.6275-pre1.

Upgrade Xamarin Forms Labs (to pre-release)

The second way is to switch Xamarin Forms Labs to Xlabs.Forms. There is some breaking namespace changes in this update so you might want to prepare yourself for some refactoring of your code. Uninstall Xamarin Forms Labs and install XLabs.Form -pre.

NOTE ON THIS: It doesn't seem like all packages are in place just yet. For example XLabs.Platform.WP8  seems to be missing. I'm sure that this will be fixed shortly. Just reference the device specific assemblies manually.

Summary

So you're pretty much left with pre-release bits in one end or another in order to use the latest Xamarin Forms.

Resources

No comments:

Post a Comment