Have you ever had a moment of inspiration, an idea you wanted to test in C#, but didn’t want to spin up a full project just to run a few lines of code? Same here.
Well, with .NET 10 Preview 4, that pain is going away. Say hello to the new dotnet run app.cs feature.
It’s like C# finally took a page from Python and JavaScript, languages that have long made it easy to run a file with a single command. Now C# joins the party. 🎉
[Read More]