No projects just C# with `dotnet run app.cs` [video]

6 vyrotek 2 5/23/2025, 6:25:41 PM youtube.com ↗

Comments (2)

p_ing · 22h ago
Adding she-bang support for dotnet run, being able to execute a .cs file is really neat. I can see this being used for simple "shell" scripts with a more sane syntax compared to bash/zsh.
sherdil2022 · 21h ago
This is great! PowerShell is indeed powerful - and it also allows loading assemblies and such - but got bit by it one too many times. Running CSharp code directly via dotnet run is great! And hoping to get features that PowerShell already offers - which is to return / pass objects.