Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin IDE Access to the Path is denied

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.

like image 753
mojoker Avatar asked Dec 19 '13 16:12

mojoker


2 Answers

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.

like image 165
Sean Perryman Avatar answered Nov 15 '22 22:11

Sean Perryman


Check the read-only property of the dll on that path, make sure it is not checked. I had the same issue, After unchecking the read-only property, the issue resolved.

like image 23
bashahul Avatar answered Nov 15 '22 21:11

bashahul