Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的天啊!当在 vs 中运行项目时,它们会立即显示并立即消失,所有项目都是 c# 控制台应用程序,我之前运行过它们,没关系,我尝试重置所有设置,但没有用
如果您希望您的控制台应用程序输入,您可以将其放在main方法的末尾
main
Console.ReadLine();
然后你需要点击enter退出控制台应用程序。
enter
调试时的另一种可能性是在方法的末尾添加一个断点main。
它被设置为错误的东西。
项目启动设置为单个项目,而不是当前项目。