C#C
C#2y ago
RobertGee

✅ Rider Program does not contain Static Main

Program does not contain a static 'Main' method suitable for an entry point

Program.Helper.cs

using System.Globalization;

partial class Program
{
    private static void ConfigureConsole(string culture = "en-US", bool useComputerCulture = false)
    {
        OutputEncoding = System.Text.Encoding.UTF8;
        
        if(!useComputerCulture) CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo(culture);
        
        WriteLine($"Current Culture: {CultureInfo.CurrentCulture.DisplayName}");
    }

    private static void WriteLineInColor(string value, ConsoleColor color = ConsoleColor.White)
    {
        ConsoleColor previousColor = ForegroundColor;
        ForegroundColor = color;
        WriteLine(value);
        ForegroundColor = previousColor;
    }
}


My Program.cs is empty
Was this page helpful?