21
submitted 2 weeks ago by [email protected] to c/[email protected]

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

top 10 comments
sorted by: hot top new old
[-] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago)

Best code suggestion ever

Is this suggesting the next code? A change? Either way it looks like nonsense!?

[-] [email protected] 12 points 2 weeks ago

Welcome to Copilot-driven development! Enjoy your stay!

[-] [email protected] 2 points 1 week ago

( ͡° ͜ʖ ͡°)

[-] [email protected] 4 points 1 week ago

Is this what they mean by Reflection?

[-] [email protected] 3 points 1 week 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

[-] [email protected] 4 points 1 week 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.

[-] [email protected] 3 points 2 weeks ago

So we can finally be rid of Powershell hellish syntax and just use C#?!

[-] [email protected] 2 points 1 week ago

Looking forward to combining this with CSnakes for seamless(?) interop w/pyhon: https://www.youtube.com/watch?v=fDbCqalegNU

[-] [email protected] 1 points 1 week ago

wow, interesting. I overlooked it, thanks for sharing

[-] [email protected] 1 points 2 weeks ago

Ooh, nice, no need for dotnet script anymore.

this post was submitted on 26 May 2025
21 points (100.0% liked)

.NET

1716 readers
7 users here now

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

Wikipedia pages

founded 2 years ago
MODERATORS