[英]unable to edit the c# code while debugging in visual studio 2019
[英]Unable to run C# in Visual Studio Code
问题是代码运行并立即退出
您应该在 Main 方法的末尾添加Console.ReadKey()
,如下所示:
using System;
class Program
{
static void Main(string[] args)
{
// Your Code here
Console.ReadKey(); // At the end of the Main method
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.