Like dotnet run app.cs. C# is becoming a scripting language :)

  • JackAttack@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    Not able to watch the video at the moment but this would mean the language can both be used as like powershell but also for large projects as well?

    I get you can sort of do this in powershell too (breakkng down into objects and multiple files) but does anyone know of any major changes this may cause to development?

    Semi new .Net Dev thats curious about the dotnet future

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      I doubt this would change anything that was already built in C# but it enables the use of C# for smaller independent scripts. Stuff you might use Python, Bash or Powershell for. It still requires a runtime so not quite as portable as Bash/Pwsh but I’d take a C# script over a Python one most days.