I was getting a build error: “Unable to delete file "…". Access to the path ‘…’ is denied.”, when building a solution in Microsoft Visual Studio 2013.
I fixed the problem by:
- Closing Microsoft Visual Studio 2013
- Opening a command prompt in administration mode and then, running:
- rd /s /q (to remove all file from the debug folder).
The syntax of the command is incorrect.