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

by vyrotekon 5/23/2025, 6:25 PMwith 2 comments

by sherdil2022on 5/23/2025, 7:15 PM

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.

by p_ingon 5/23/2025, 6:48 PM

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.