Bug 23872 - System.IO.FileNotFoundException: Could not load assembly 'Windows.winmd, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android
Summary: System.IO.FileNotFoundException: Could not load assembly 'Windows.winmd, Vers...
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.18.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-10-16 11:26 UTC by rick.mccabe
Modified: 2017-08-07 20:49 UTC (History)
4 users (show)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description rick.mccabe 2014-10-16 11:26:29 UTC
trying to build a Xamarin Forms app and receiving the error below:

Error	14	Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'Windows.winmd, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android profile?

I double click on the error but it doesn't take me anywhere.... please let me know if you need more information.

Xamarin Forms App.
Visual Studio 2013
Comment 1 Parmendra Kumar 2014-10-16 13:12:08 UTC
I have checked this issue but I am not able to reproduce it. To reproduce this issue I have followed these steps:
1. Create a Xamarin.Forms application.
2. Build sucessfully

Screencast:http://www.screencast.com/t/ELOsxCkbdSB

Please check the Screencast and let me know if I have missed anything.

Environment Info:
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin   3.7.203.0 (ff146f5240189a2ec6d3c6f75cf3967f79c79a18)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.34 (3b7ef0a796e8744972c48034403a6e7cb7ec189e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.2.0.0 (65b2f3a0f52f365b90ac952f0ec2e40fa0b510d4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Udham Singh 2014-10-17 07:43:02 UTC
I have checked this issue and observed that Xamarin.Forms show a warning.
Please check the screencast and let me know if you are getting same warning or I am missed anthing

Screencast:http://www.screencast.com/t/0H9wUjae99

Warning: Warning	1	Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'App179, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android profile?	App179.Android
Comment 3 Parmendra Kumar 2014-10-17 08:09:25 UTC
I have checked this issue and observed that the Xamarin.Forms application show a warning which you mentioned in bug description.
Could you please tell me that are you getting same behavior or I am missed anything
To see warning: View->Error List->Warning 

Build Log:https://gist.github.com/Parmendrak/418998b4d1fc4600f1ec
ZipXam Log: https://gist.github.com/Parmendrak/d18479acc05c261e11ef
Comment 4 rick.mccabe 2014-10-17 08:43:33 UTC
Hi,

That's a similar bug but not the exact same one. the error I get is:

Error	14	Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'Windows.winmd, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android profile?	eAudit.Android

The problem is loading Windows.winmd. When I try to add Windows.winmd as a reference to the Android project I get the error below:

---------------------------
Microsoft Visual Studio
---------------------------
A reference to 'C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd' could not be added. You can only add WinMD references to a project targeting Windows 8.0 or higher. To learn how to retarget your project to a different version of Windows, please see the 'Core subgroup' section underneath the 'Windows tab' section in the 'How to: add or remove references by using the Reference Manager' help page: http://msdn.microsoft.com/library/hh708954(v=vs.110).aspx.
---------------------------
OK   
---------------------------

Thanks.
Comment 5 Jon Douglas [MSFT] 2017-08-07 20:49:45 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.