When I package a Sharepoint 2010 project in Visual Studio 2010, I occasionally get the following error message:
Access to the path 'C:\path-to-my-project\pkgobj\Debug\Package_Manifest.xml' is denied.
I checked the file, and it seems to be read-only. Clearing the read-only flag helps, but eventually the problem reoccurs. What's causing it and how can I fix it for good?