In JetBrains Rider, when I create a scratch C# file, how can I execute it? Making the Main method public static and adding a namespace seems to be not enough.
using System;
namespace MyNamespace
{
public class Foo
{
public static void Main()
{
Console.WriteLine("hello");
}
}
}
Rider version: JetBrains Rider 2022.3.1
Windows 10