Bug 12637 - System.IO.DirectoryNotFoundException: Could not find a part of the path when trying to compile MapsAndLocationDemo_v2 in Visual Studio 2012
Summary: System.IO.DirectoryNotFoundException: Could not find a part of the path when ...
Status: RESOLVED DUPLICATE of bug 12938
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.6.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-06-11 15:34 UTC by Tom Opgenorth
Modified: 2015-09-22 14:56 UTC (History)
6 users (show)

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


Attachments
working sshot (107.28 KB, image/png)
2013-06-12 06:25 UTC, Atsushi Eno
Details


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 DUPLICATE of bug 12938

Description Tom Opgenorth 2013-06-11 15:34:35 UTC
Trying to build the Maps & Location demo v2. I'm running Windows 8, Visual Studio 2012, Xamarin.Android 4.6.8 (0cc7ae3b), JDK 1.7. My Windows 8 is runnning inside VMware Fusion Version 5.0.3 (1040386).  When I set the build configuration to Debug, and try to build (or rebuild) the solution, I get the following errors:

5>  Task Parameter:BuildingInsideVisualStudio=true (TaskId:57)
5>  Daemon stderr: monodroid: error XA0000: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "\\vmware-host\Shared Folders\tom\work\xamarin\code\monodroid-samples\MapsAndLocationDemo_v2\SimpleMapDemo_Froyo\obj\Debug_Froyo\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_dark.9.png" (TaskId:57)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(309,2): monodroid error XA0000: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "\\vmware-host\Shared Folders\tom\work\xamarin\code\monodroid-samples\MapsAndLocationDemo_v2\SimpleMapDemo_Froyo\obj\Debug_Froyo\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_dark.9.png"
5>  Daemon stderr:   at System.IO.File.Delete (System.String path) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at System.IO.Directory.Delete (System.String path, Boolean recursive) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at Xamarin.Android.Tools.AssemblyResourceExtractor.Extract () [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at Xamarin.Android.Tools.ProtectedCommands.ExtractResources (System.String command) [0x00000] in <filename unknown>:0  (TaskId:57)
5>  Daemon stderr:   at Monodroid.MainClass.RunCommandProcessor () [0x00000] in <filename unknown>:0  (TaskId:57)

The project does build in Xamarin Studio regardless of the build configuration that is selected.

I can confirm that the following directory is visible, and does contain the PNG files.
\\vmware-host\Shared Folders\tom\work\xamarin\code\monodroid-samples\MapsAndLocationDemo_v2\SimpleMapDemo_Froyo\obj\Debug_Froyo\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\

If you inspect the build configurations you can see that the *_Froyo  projects are not supposed to be build when the build configuration is set to Debug. The *_Froyo projects should only be compiled when the build configuration is set to Debug_Froyo.

Submitting this as a bug as directed by the build log.
Comment 1 Atsushi Eno 2013-06-12 06:25:21 UTC
Created attachment 4106 [details]
working sshot
Comment 2 Atsushi Eno 2013-06-12 06:25:33 UTC
Are you sure that you have read permission on that file?

I could build MapsAndLocationDemo_v2 with XA 4.6.8 without problem, as attached.
Comment 3 Tom Opgenorth 2013-06-12 09:31:08 UTC
Yes I have permissions. I could delete files and that directory no problem in Windows 8.
Comment 5 Atsushi Eno 2013-06-19 02:13:25 UTC
I have some other doubts than whatever about "Bindings" (bug category that therefore "assigns" the bug to me, while it is not really about it). Since it does build fine on XS according to you, it rather sounds like either VS addin has issues, or XS or XA gives some permissive path settings that VS does not allow.

Have you ever successfully built any XA application project that is on the same network path?

What happens if you write a simple program that uses File.Delete() to delete "\\vmware-host\Shared
Folders\tom\work\xamarin\code\monodroid-samples\MapsAndLocationDemo_v2\SimpleMapDemo_Froyo\obj\Debug_Froyo\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_dark.9.png"" ?
(I think this path string is output/copied in horrible way, doesn't look like a valid literal anyways.)
Comment 6 ole.kristensen 2013-06-19 03:14:51 UTC
I get same problem. I build my projectect in XA visual studio 2012. 

Error	46	Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\olefa_000\Downloads\monodroid-samples-master\monodroid-samples-master\MapsAndLocationDemo_v2\MapsAndLocationDemo\obj\Debug\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png"	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets	578	3	MapsAndLocationDemo
Error	47	Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\olefa_000\Downloads\monodroid-samples-master\monodroid-samples-master\MapsAndLocationDemo_v2\MapsAndLocationDemo\obj\Debug\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png"	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets	173	5	MapsAndLocationDemo
Comment 7 ole.kristensen 2013-06-19 03:21:02 UTC
After clean:

Error	1	Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\olefa_000\Downloads\monodroid-samples-master\monodroid-samples-master\MapsAndLocationDemo_v2\MapsAndLocationDemo\obj\Debug\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png"	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets	120	5	GooglePlayServices


Error	2	Unable to determine license edition. !!!!!!!

	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets	120	5	GooglePlayServices
Error	3	Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\olefa_000\Downloads\monodroid-samples-master\monodroid-samples-master\MapsAndLocationDemo_v2\MapsAndLocationDemo\obj\Debug\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png"	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets	411	3	MapsAndLocationDemo
Error	4	Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\olefa_000\Downloads\monodroid-samples-master\monodroid-samples-master\MapsAndLocationDemo_v2\MapsAndLocationDemo\obj\Debug\__library_projects__\GooglePlayServices\library_project_imports\bin\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png"	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets	309	2	MapsAndLocationDemo
Error	5	Unable to determine license edition.	C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets	309	2	MapsAndLocationDemo
Comment 8 Tom Opgenorth 2013-10-11 12:52:53 UTC
Just an update - I haven't been able to duplicate this in a while and I have not heard any complaints about this specific issue.
Comment 9 Yvan Rodrigues 2014-03-21 14:24:13 UTC
This is not unique to this sample project.

Either:
(a) The Google Play Services component is missing the images listed below;
(b) The component manager does not correctly import these resources;
(c) The resources are not required and the XML resource manifests should not be included

7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_dark.xml(4): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_pressed_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_dark.xml(7): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_disabled_focus_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_dark.xml(14): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_disabled_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_dark.xml(17): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_normal_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_light.xml(4): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_pressed_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_light.xml(7): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_disabled_focus_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_light.xml(11): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_focus_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_light.xml(14): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_disabled_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_icon_light.xml(17): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_normal_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_dark.xml(4): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_pressed_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_dark.xml(7): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_disabled_focus_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_dark.xml(14): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_disabled_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_dark.xml(17): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_normal_dark').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_light.xml(4): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_pressed_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_light.xml(7): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_disabled_focus_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_light.xml(11): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_focus_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_light.xml(14): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_disabled_light').
7>F:\[REDACTED]\bin\Debug\15\content\google-play-services\libproject\google-play-services_lib\res\drawable\common_signin_btn_text_light.xml(17): error : No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_normal_light').
Comment 10 Tom Opgenorth 2015-09-22 13:09:37 UTC
No complaints about this in > 1 year. Perhaps we should close this off?
Comment 11 Jonathan Pryor 2015-09-22 14:56:37 UTC
Based on the description, the error message, and the fact that nobody's seen this in over a year, I think this bug is a dupe of Bug #12938.

*** This bug has been marked as a duplicate of bug 12938 ***