If you are just trying to run the cs file without a project, etc., then the problem is that the code runner treats the file as a script. Thus, the main method is not actually called, as it would be when starting a console application.
, Program.Main(null); . - launch.json config. Program.Main , VS-, . . .
using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Test");
}
}
Program.Main(null);
: fooobar.com/questions/14007790/...