[MonoDevelop] Cannot rebuild due to file permissions in build dir

Kirk kgleason at gmail.com
Thu May 5 21:55:50 EDT 2011

I know that the message that is quoted below is a little aged, but I am a
facing a similar situation. The work around that I have come up with is to
remove all .svn directories underneath bin in my project directory, but it
is a hassle to have to do this every I checkout new code.

I do think that I will remove my bin directory from version control, but I'd
like to have a better understand of why this is happening.

In our case, we are running MonoDevelop 2.4.2 with MonoTouch 4.0.2. We also
saw the same issue with MonoTouch 4.0.0. Our OS X is all up to date.


Len Charest wrote:
> Since upgrading to MD 2.4.2, I've had problems with rebuilding projects.
> On initial build, some files (DLLs) are copied into the build directory as
> read-only (perms 0444). On subsequent rebuild, MD complains that it does
> not have permission to delete the files from the build directory, and the
> build fails. 
> Manually running "chmod +w *" (or "rm -f ./*") in the build directory
> allows the rebuild to succeed, but it's not a viable solution. Neither of
> these commands can be used as pre-build actions since actions are run
> *after* the MD build system attempts to clean the build directory.
> Is this a known problem and is there a work-around?
> Some additional info: I'm running MD 2.4.2 on a MacBook Pro with MacOS
> 10.6.6. I also have the latest Mono and MonoTouch bits.

View this message in context: http://mono.1490590.n4.nabble.com/Cannot-rebuild-due-to-file-permissions-in-build-dir-tp3243393p3500522.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.

More information about the Monodevelop-list mailing list