简体   繁体   中英

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.

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.

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.

删除此文件中的所有缓存C:\\ Users {user} .nuget \\ packages并更新xamarin.forms

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM