CS C: ошибка CS5001: Программа не содержит метод stati c 'Main', подходящий для точки входа [C: \ Users \ Boris \ gradebook \ src \ Gradebook \ Gradebook. csproj]
Код:
class Program
{
static void Main(string[] args) // static with a void (or int) return type
{
if (args.Length > 0)
{
Console.WriteLine($"Hello, {args[0]}!");
}
else
{
Console.WriteLine ("Hello");
}
}