Tuesday, January 20, 2015

Cannot resolve dependency after updating Xamarin Forms to

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

Cannot resolve dependency to assembly 'Xamarin.Forms.Platform.WP8, Version=, 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.

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.


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


No comments:

Post a Comment