最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Unable to run applications in debug mode in Visual Studio 2022 - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论