.NET 10 Preview 6 brings JIT improvements, one-shot tool execution

infoworld.com

172 points by breve 4 days ago


jug - 19 hours ago

My favorite .NET 10 feature so far is not within the .NET library itself, but `dotnet tool exec` to run C# files as scripts without a build step. This has been available in F# for a long time via `dotnet fsi`, and for C# also via the third party cs-script tool. It took a surprisingly long time to officially reach the primary .NET language!

I only really wish C# would’ve been directly integrated as an alternative scripting language in PowerShell. You may balk at the idea for causing a ton of cruft for people who don’t need it; ”a whole new scripting language!” But the thing is — PowerShell already builds upon .NET so supporting a new language is a rather small effort (relatively speaking) if it happens to be a .NET language. And C# just feels so much better for me to code in when the scripts grow in size. I’m not sure I’ll ever become friends with the implicit returns. C# has become particularly suitable for scripting with the recent developments in the language: https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...

tester756 - 20 hours ago

.NET was the most sane programming ecosystem that I worked in.

Great CLI, great package manager, very good stdlib, strong IDEs/Debuggers, etc.

but sadly interesting jobs like OSes, databases and compilers are way less common than in C++ world :(

mattgreenrocks - 21 hours ago

All I want is for dotnet watch to behave in a predictable way. In .NET 9, even when using —no-hot-reload, sometimes CSS changes to components are not picked up on Blazor components.

It’s so aggravating because ASP.NET with server side Blazor components really has it all: type safety, server-side components ala Astro, fantastic ORM model, great runtime perf. But this little issue makes dev quite tedious at present: did I mistype a Tailwind class name, or did dotnet watch miss the change?

tekdude - 21 hours ago

Might be worth viewing the full list of changes in the blog post that the article links to:

https://devblogs.microsoft.com/dotnet/dotnet-10-preview-6/

smackeyacky - 13 hours ago

All these changes, yet still no satisfactory UI framework.

Still no migration path from WinForms to something modern.

I love .NET but if you're taking on an older desktop app that is still using VB.NET and WinForms it feels like Microsoft have decided to let you circle the drain with no supported way forward into MAUI or whatever stupid XAML UI they decided is the solution these days.

On a server, .NET is fantastic and it's entirely possible to build and debug your system on Linux with no loss of productivity, but the desktop stuff is bad and getting worse.

giancarlostoro - 19 hours ago

Only thing I want to hear about lately is the next major version of Visual Studio, I feel like it will never come. I always feel like every major version has drastic improvements, and I'm starved for them.

brainzap - 15 hours ago

They should fix github issues and write in-depth tutorials, instead of AI features or minimal API.

Alifatisk - 20 hours ago

One-shot execution looks exciting, what problems does it solve? Less cluttering in the environment?

sergiotapia - 19 hours ago

I haven't used C#/.NET since .NET 4 - I remember it was great, yet heavily tied into Visual Studio, and forget about using CLI for things like most other languages. It was all GUI or nothing. Insurmountable XML files.

How are things these days with .NET 10! Jesus, 10!

Dudes who use it daily, what is your favorite feature you think?

croes - 20 hours ago

I prefer .Net Framework 4.8 Longer lifetime than any .Net version.

devwastaken - 18 hours ago

reminder the .net compiler is IP of microsoft and they state this clearly when you invoke it on any platform other than windows. you are merging your company with microsoft and windows if you use it.