Xamarin IDE Access to the Path is denied

mojoker picture mojoker · Dec 19, 2013 · Viewed 9k times · Source

I'm porting over a Visual Studio C# solution with many projects and creating a new solution in the Xamarin IDE - all on windows.

I am porting / re-creating 1 project at a time and then compiling. I can compile each project individually but and then I can compile the solution (with some errors).
The problem arises if I try a Rebuild All, then it shows the error:

'Access to the path "[my build path\some.dll]" is denied.'

I have full admin rights and, as I mentioned, I originally could build the dll's so it's not an access issue.
If I try to actually delete the dll's in question, I can't - windows denies me.
If I close Xamarin, I can then delete the file manually. So, I assume, Xamarin still has a 'lock' on the file which won't allow it to be deleted.

Has anyone else seen this and if so, how did you get around it?

If this is a bug, then this makes this nearly unusable.

Answer

Sean Perryman picture Sean Perryman · Jan 7, 2014

I just started with Xamarin in Windows as well and am having this problem. A quick fix I found it to switch from Debug over to Release; but this disables your debug output. Closing and reopening Xamarin has also relieved the issue for a few more debug builds.

I have found no rhyme or reason why this is occurring, seems to be at random.