
A New Genre in .NET: The Era of NuGet-Free Single File C# Coding
C# isn’t becoming as lightweight as a scripting language — scripting languages are becoming envious of how fast it’s getting. Introduction dotnet run file.cs — the so-called file-based app — introduced in .NET 10, lets you run C# code with just a single .cs file, without a .csproj. However, its current execution speed is roughly 1.5 seconds on Windows and 0.8 seconds on WSL2 for the first run. Compared to Python’s python script.py at around 50ms, it’s hard to call this “scripting” with a straight face. ...