Since yesterday, I am unable to run any of my Windows Forms apps in debug mode (by pressing F5). When I try to do that, the applications close automatically and in the output box there is a message reading:
The program '[20468] [program name here]' has exited with code 0 (0x0).
The applications work properly when run without debugging (Ctrl+F5)
Stopping points placed at the beginning of the first form to load are not being triggered so I would exclude the code itself is closing the applications. The same behaviour is happening on all applications, all of which were working fine until two days ago.
I have uninstalled and re-installed Visual Studio two times. On the second uninstall, I deleted all the folders and registry keys related to Visual Studio in order to make sure there were no residue setting. Unfortunately, I keep getting the same result.
The applications in question are VB.Net Windows Forms Apps with .Net Framework 4.8. They were all opening fine until yesterday.
Update: I created a simple app that only consists of a single form with no code at all. Same problem. I cleaned the solution and re built several times without success. I uninstalled VS 2022 and installed VS 2019 but I still experience the same problem. The files are in a shared folder that I can access from another PC and the applications work fine from another PC. It appears that the problem only affects my work station.