When you F5 a project, whether it's Debug or Release, Visual Studio will attach to the process, locking the file. Try running without attaching (Ctrl+F5).
A rebuild will try to overwrite your executable, which probably can't be done because it's locked while running, even without the debugger attached. This way you can't compile or debug your newer version while the older one is running.
Deploy the executable somewhere else, run it, attach to it using another instance of Visual Studio and continue editing in your first instance.