Xamarin.forms: "Xamarin.Forms" version="3.0.0.427558-pre4" fails to build for Android API 25 target

Created on 27 Apr 2018  路  2Comments  路  Source: xamarin/Xamarin.Forms

Description

Attempting to use pre4 build of Xamarin.Forms package gives error when attempting to build Android (API25) target.
System.IO.FileNotFoundException: Could not load assembly 'Microsoft.Windows.Design.Extensibility, Version=4.3.1.0

Steps to Reproduce

  1. Create a new Blank Xamarin Forms project
  2. Update the Xamarin.Forms package for the common, Droid and iOS projects to the pre4 package
  3. Try to build the Droid target.

Expected Behavior

App should build and deploy to device

Actual Behavior

Error from build.

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.Windows.Design.Extensibility, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Microsoft.Windows.Design.Extensibility.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference, Mono.Cecil.ReaderParameters parameters) [0x00099] in /Users/builder/data/lanes/5809/a7829590/source/monodroid/external/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:229
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference) [0x00000] in /Users/builder/data/lanes/5809/a7829590/source/monodroid/external/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:179
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver resolver, System.Collections.Generic.ICollection`1[T] assemblies, Mono.Cecil.AssemblyDefinition assembly, System.Boolean topLevel) [0x0015c] in :0
at Xamarin.Android.Tasks.ResolveAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver resolver) [0x001c7] in :0 (Test3.Droid)

Basic Information

  • Version with issue:
  • Last known good version: pre2
  • IDE: Visual Studio for Mac Community (7.4.3)
  • Platform Target Frameworks:

    • iOS:

    • Android: API25 (7.1)

    • UWP:

  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

bug

Most helpful comment

I'm facing the same issue. Would wait for the stable build of XF.

All 2 comments

I'm facing the same issue. Would wait for the stable build of XF.

Removing those lines from csproj solved the problem:
<Reference Include="Xamarin.Forms.Core.Design"> <HintPath>..\packages\Xamarin.Forms.3.0.0.427558-pre4\lib\MonoAndroid10\Design\Xamarin.Forms.Core.Design.dll</HintPath> </Reference> <Reference Include="Xamarin.Forms.Xaml.Design"> <HintPath>..\packages\Xamarin.Forms.3.0.0.427558-pre4\lib\MonoAndroid10\Design\Xamarin.Forms.Xaml.Design.dll</HintPath> </Reference>

Was this page helpful?
0 / 5 - 0 ratings