Announcing dotnet run app.cs - A simpler way to start with C# and .NET 10 - .NET Blog
Run C# files instantly with dotnet run app.cs, no project file needed! Coming to .NET 10, try it out today in Preview 4.