As Jonathan said, yes, renaming can help get around this problem. But, for example, I was forced to rename the target executable file many times, this is a bit tedious and not very good.
The problem is that when you start the project and the subsequent error, you cannot create your project - this is because this executable file (your project) is still running (you can check it using the task manager). If you simply rename the assembly of targets, after a while you will get the same error with a new name, and if you open the task manager, you will see that you are overwriting the system with your unfinished projects.
To create a new assembly, Visual studio must delete the previous executable file and create a new one, not the old one, it will not be able to do this while the executable file is still running. So, if you want to create a new assembly, the process of the old executable file must be closed! (it is strange that the visual studio does not close it by itself and yes, it looks like an incorrect behavior).

Itβs a little tedious to do this manually, so you can just bat file and just click on it when you have this problem:
taskkill /f /im name_of_target_executable.exe
it works for me at least. As a hunch, I am not closing my program properly in C ++, so it might work fine for a visual studio.
Addition: There is a great chance to be so, because of the unfinished application. Check if you finally named PostQuitMessage to let you know what you did.
Tebe Nov 26 2018-12-12T00: 00Z
source share