Bug 15393 - System.IO.IOException: Directory Not Empty error on build
Summary: System.IO.IOException: Directory Not Empty error on build
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.8.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2013-10-14 18:05 UTC by Dan Wager
Modified: 2016-08-08 09:29 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 NORESPONSE

Description Dan Wager 2013-10-14 18:05:30 UTC
I get this error when I build the project (and sometimes when I try to deploy).  I can get around it if I clean the solution/project, but I have to do it every time.

 C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(618,2): monodroid error XA0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.IOException: Directory C:\...\obj\Debug\__library_projects__\Project.Core.Android is not empty [C:\...\Project.Android.csproj]
Comment 2 Dimitar Dobrev 2014-06-02 11:38:09 UTC
I have the same error, here's my output:

1>------ Build started: Project: Psonar.Common.WebServices.MonoDroid, Configuration: Debug Any CPU ------
2>------ Build started: Project: Psonar.Common.ViewObjects.MonoDroid, Configuration: Debug Any CPU ------
1>  Psonar.Common.WebServices.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.WebServices\bin\Debug\Psonar.Common.WebServices.dll
2>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.ViewObjects\ClientUserView.cs(85,13,85,32): warning CS0618: 'Psonar.Common.ViewObjects.ClientUserView.RewardsClaimed' is obsolete: 'Superceded by List<RewardView> Rewards but can only be removed once iPhone app, Android app and webapp have been updated'
2>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.ViewObjects\ClientUserView.cs(89,21,89,40): warning CS0618: 'Psonar.Common.ViewObjects.ClientUserView.RewardsClaimed' is obsolete: 'Superceded by List<RewardView> Rewards but can only be removed once iPhone app, Android app and webapp have been updated'
2>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.ViewObjects\ClientUserView.cs(91,13,91,32): warning CS0618: 'Psonar.Common.ViewObjects.ClientUserView.RewardsClaimed' is obsolete: 'Superceded by List<RewardView> Rewards but can only be removed once iPhone app, Android app and webapp have been updated'
2>  Psonar.Common.ViewObjects.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.ViewObjects\bin\Debug\Psonar.Common.ViewObjects.dll
3>------ Build started: Project: Psonar.Common.Api.Requests.MonoDroid, Configuration: Debug Any CPU ------
4>------ Build started: Project: Psonar.Common.Api.Responses.MonoDroid, Configuration: Debug Any CPU ------
3>  Psonar.Common.Api.Requests.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Requests\bin\Debug\Psonar.Common.Api.Requests.dll
4>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Responses\User\UserLoginResponse.cs(61,13,61,24): warning CS0618: 'Psonar.Common.Api.Responses.User.UserLoginResponse.UserId' is obsolete: 'to be deprecated when the iOS app has been updated to use the Record member'
4>  Psonar.Common.Api.Responses.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Responses\bin\Debug\Psonar.Common.Api.Responses.dll
5>------ Build started: Project: Psonar.Common.Api.Proxy.MonoDroid, Configuration: Debug Any CPU ------
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\ApiProxyStream.cs(14,15,14,28): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\ApiProxyStream.cs(19,18,19,35): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\ApiProxyStream.cs(24,15,24,36): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\ApiProxyStream.cs(29,15,29,34): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(12,15,12,34): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(14,16,14,35): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(33,15,33,37): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(35,16,35,38): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(53,15,53,35): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(55,16,55,36): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(74,15,74,37): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\Actions\StreamActions.cs(76,16,76,38): warning CS0618: 'Psonar.Common.Api.Responses.Stream.StreamInfoResponse' is obsolete: 'to be deprecated when HLS streaming is fully functional'
5>__User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\ApiAction.cs(17,35,17,48): warning CS0067: The event 'Psonar.Common.Api.Proxy.ApiAction.ActionChanged' is never used
5>  Psonar.Common.Api.Proxy.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Api.Proxy\bin\Debug\Psonar.Common.Api.Proxy.dll
6>------ Build started: Project: Psonar.Common.Store.MonoDroid, Configuration: Debug Any CPU ------
7>------ Build started: Project: Psonar.Apps.Common.MonoDroid, Configuration: Debug Any CPU ------
6>  Psonar.Common.Enums.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Enums\bin\Debug\Psonar.Common.Enums.dll
6>  Psonar.Common.Support.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Support\bin\Debug\Psonar.Common.Support.dll
6>  Psonar.Common.Store.Exceptions.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Store.Exceptions\bin\Debug\Psonar.Common.Store.Exceptions.dll
6>  Psonar.Common.Store.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Store\bin\Debug\Psonar.Common.Store.dll
7>  Psonar.Apps.Common.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Apps\Psonar.Apps.Common\bin\Debug\Psonar.Apps.Common.dll
8>------ Build started: Project: Psonar.Common.AppStore.MonoDroid, Configuration: Debug Any CPU ------
8>  Psonar.Common.AppStore.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.AppStore\bin\Debug\Psonar.Common.AppStore.dll
9>------ Build started: Project: Psonar.Apps.Droid.PayPerPlay, Configuration: Debug Any CPU ------
9>  Psonar.Common.Queuing.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Queuing\bin\Debug\Psonar.Common.Queuing.dll
9>  Psonar.Common.Core.MonoDroid -> __User_path__\Projects\psonar\Source\Psonar.Common\Psonar.Common.Core\bin\Debug\Psonar.Common.Core.dll
9>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(640,2): monodroid error XA0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.IOException: Directory __User_path__\Projects\psonar\Source\Psonar.Apps\Psonar.Apps.Droid\Psonar.Apps.Droid.PayPerPlay\obj\Debug\__library_projects__\Psonar.Apps.Common is not empty
========== Build: 8 succeeded, 1 failed, 5 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

The problem is not in the length of the path because after 2 or 3 attempts I am able to build.
Comment 3 Dimitar Dobrev 2014-06-02 15:34:54 UTC
I get versions of this (such as "Access Denied") almost every time. I hope it can be fixed soon.
Comment 4 Dimitar Dobrev 2014-06-12 08:46:02 UTC
Hi, is the output I gave useful?
Comment 5 Atsushi Eno 2014-06-12 21:32:19 UTC
It is not reproducible to "any" projects i.e. only you two are experiencing the issue, so I'm not sure what could cause the reason. It would be helpful if you can provide reproducible projects either attached here or sent to support@xamarin.com.
Comment 6 Dimitar Dobrev 2014-07-05 12:43:53 UTC
I get this bug on EACH build. Most commonly an IOException. Please fix it, it's a really big problem.
Comment 7 Atsushi Eno 2014-07-05 13:14:56 UTC
It is not reproducible to "any" projects i.e. only you two are experiencing the
issue, so I'm not sure what could cause the reason. It would be helpful if you
can provide reproducible projects either attached here or sent to
support@xamarin.com.
Comment 8 Atsushi Eno 2016-08-08 09:29:25 UTC
marking as NORESPONSE.