from Hacker News

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

by vyrotek on 5/23/25, 6:25 PM with 2 comments

  • by sherdil2022 on 5/23/25, 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_ing on 5/23/25, 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.