Bug 2576 - MonoTouch Bindings build fails after clean
Summary: MonoTouch Bindings build fails after clean
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2011-12-19 16:54 UTC by Adam Kemp
Modified: 2011-12-20 18:12 UTC (History)
3 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 FIXED

Description Adam Kemp 2011-12-19 16:54:15 UTC
If you do a clean on a MonoTouch Bindings project then it leaves behind files that cause future build attempts to fail.

Steps to reproduce:
1. Create a new MonoTouch Bindings project.
2. Build all. It succeeds.
3. Rebuild all. It fails.
4. Build all. Still fails.

Workaround:
Delete the "obj" directory. I'm doing this in a custom post-clean build step.
Comment 1 Jeffrey Stedfast 2011-12-20 17:29:47 UTC
Looks like RemoveDir is not recursively deleting directories liek it is supposed to according to MSDN. Will have to fix Mono.
Comment 2 Jeffrey Stedfast 2011-12-20 17:59:14 UTC
Fixed in Mono 2-10 branch now. Probably too late for Mono 2.10.8, but will make it into a 2.10.9.

I've also added a workaround for older Mono versions to MonoTouch 5.1.x and 5.0.x branches since 2.10.9 might not be out for a while.
Comment 3 Jeffrey Stedfast 2011-12-20 18:12:23 UTC
FYI, I've uploaded the fixed build targets and .dll to http://files.xamarin.com/~jeff/MonoTouchBuildTargets.tar.gz

Feel free to unzip them into /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/