Symptom: Can't build/deploy WSP in Visual Studio
Error message: cablib compress error: could not flush cabinet
Problem: In the file structure, the WSP has a property of Read-Only. It can't create a new WSP because it can't overwrite the file.
Solution: Go into the file structure where the WSP gets built and right-click for properties. Uncheck Read-only and try to rebuild/deploy.