Bug 51317 - Could not load assembly 'Windows.Foundation.UniversalApiContract.winmd
Summary: Could not load assembly 'Windows.Foundation.UniversalApiContract.winmd
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Cody Beyer (MSFT)
Depends on:
Reported: 2017-01-10 08:03 UTC by Sylvrec
Modified: 2017-06-13 23:12 UTC (History)
2 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description Sylvrec 2017-01-10 08:03:49 UTC

I have a error when i build my solution in Xamarin.Android. 
My project is a solution Xamarin.Forms PCL.

Build error list
Severity Code Description Project File Line Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Windows.Foundation.UniversalApiContract.winmd, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Windows.Foundation.UniversalApiContract.winmd.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(ICollection1 jars, ICollection1 resolvedResourceDirectories, ICollection1 resolvedAssetDirectories, ICollection1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() DxCareAppsPhysician.Droid

When i seen this error i linked this Windows.Foundation.UniversalApiContract.winmd but i have same error.

I don't know which library need this reference.

Here my csproj Xamarin.Android with all references -> http://pastebin.com/R1FDzyUm
Comment 1 Cody Beyer (MSFT) 2017-06-13 23:12:06 UTC
I am unable to find a reason for this reference. Are you able to share the project in a secure form? Or if not, are you able to produce a project which demonstrates this issue?

Note You need to log in before you can comment on or make changes to this bug.