Started finally working on a Windows RT app tonight. I got one execution of it on my local Win8 (x64) machine and then every deploy (builds work fine) after that, I was met with:
Error 1 Error : DEP0500 : The folder “C:\Users\brand_000\Documents\Projects\<app name>\bin\Debug\AppX” could not be deleted.
Access to the path ‘resources.pri’ is denied.
Well, that’s thoroughly annoying. Try to delete the AppX folder, and you’ll get the always-awesome
Dammit. I tried clean & rebuild, nada. I tried re-creating the solution file and a couple of other things per this post on the Windows 8 Store dev center forums, but no luck. My app only has one project in it. So there went that. I feel turning to SysInternals stuff was a bit heavy-handed so wanted to get this thing solved without doing that.
Then I tried launching VS 2012 as Admin. Nope.
If you can’t delete a subfolder… how’s about moving everything else to a new spot? I copied the parent folder and then was able to delete the problem ‘bin’ directory. Opened up the solution in VS 2012 and voila. It worked.
So what happened? Well, I don’t know. What I can tell you is that I started this project, did a couple of changes to one screen, then I re-namespaced the thing which meant changing properties of the project, as well as the App.xaml and MainPage.xaml files. It’s possible, I suppose, that this is what caused the problem. My advice, then, would be to clean your build and delete bin\ and obj\ directories before you go changing “fundamental” things like namespaces of your App Project file.