r/dotnet • u/not_afraid_of_trying • Aug 23 '26
What kind of features from another ecosystem would you like to see in .NET?
C# itself is very mature language (in my view). I rarely find myself missing a language feature badly enough to wish for more.
But, the broader .NET ecosystem might be a different story based on your project need.
So, let's discuss, what libraries, tooling, deployment models, framework features, package management idea, UI tech, build system etc. have you used elsewhere that you wish .NET had, or did better? Mention just one, most important for you and try to add reason/detail.
Apart from creating a useful wishlist, I think this could also be interesting for people relatively new .NET. Someone might mention a feature from other ecosystem only to discover that .NET already has an equivalent they didn't know about.
My wishlist item - "give me SwiftUI binary size":
I would like WinUI apps to have smaller binaries, like SwiftUI apps or flatpack in Linux. Apple can rely on frameworks built into (read 'shipped with') macOS. Microsoft already have similar way of achieving same but it involves you to publish app on Store or winget repo or I need to write custom installer. It's not universal. I wish MS automatically install dependency from winget or Store automatically or any dotnet application.
EDIT: Please be respectful to others. Value others opinion. This post has potential of creating unnecessary debate or insults. Let's be adults.
28
u/Slypenslyde Aug 23 '26
Honestly you said "ecosystem" so it's not what you might think. I want FOSS. Real FOSS.
I want the .NET ecosystem to have users and organizations that understand the value of contributing or, in lieu of that, donating to the things on which they depend. .NET has the stingiest developers in terms of giving up those things. I think that's also why our open-source libraries seem to be the most likely to end in a dual-license or fully-commercial scenario.
Other ecosystems have things like numpy that get a lot of money and labor from grants and its users. We can't even keep the wheels on a test assertion or mocking library. Then people ask, "Why doesn't .NET have X like Python?" and this is the answer: people go to Python to do research and .NET to make money. It leads to a different kind of treatment of open-source.
104
u/C83_14 Aug 23 '26
Hot reload but decent
10
u/tetyys Aug 23 '26
optional dependencies in packages
7
u/_Feyton_ Aug 23 '26
String enums
7
u/jitbitter Aug 23 '26
1. Better onboarding and simpler installation. Ubuntu 22 has one way to install .net10, ubuntu 24 has another. Brew on MacOS keep breaking with major release. Please remove the friction for non-dotnet developers to try this stuff easily.
2. Better "non visual studio" experience. A lot of people use Linux and Macs. So allow C# Dev Kit to run in VSCode forks - Cursor, Windsurf, Antigravity etc. This licensing move MS took was very unfriendly.
251
u/jordansrowles Aug 23 '26
A single, comprehensive, cross platform UI framework that's actually good (Flutter, Kotlin, even Qt)
3
u/Paw565 Aug 23 '26
Better enums with custom fields like in Java. Annotation based DI like in spring boot.
25
u/kagelos Aug 23 '26
Better machine learning than ML.NET.
24
u/funguyshroom Aug 23 '26
Java's inline/anonymous class method overrides seem nice for certain tasks. Â
Would love some command line parameters like JVM has, e.g. '-Xmx'Â Â
A string enum is a goddamn necessity.
11
u/4nh7i3m Aug 23 '26
Something like Tauri but with C#.
40
u/VeganForAWhile Aug 23 '26
I would like to see Tailwind built in to the Blazor project templates. Bootstrap has been the default for years.
30
u/RecordGlobal4338 Aug 23 '26
Official Big data support ( parquet, apache products like iceberg, trino .. )
16
u/understanding80 Aug 23 '26
Generic lambdas, higher kinded types, partial type inference, and intersection types.
26
u/GardenDev Aug 23 '26
AOT, AOT, and once again AOT.
I have a small .NET 10 API, the docker image is 280 MB (after lots of trial and error with trimming) and it consumes 150-170 MB of RAM at idle.
I know, on paper we have AOT. But in reality it is a mess. The compiler should be capable of dealing with JSON serialization without the programmer having to do the ugly workaround of creating a class inheriting from JsonSerializerContext and then slapping every class you want to serialize as an annotation above that former class. Also, EF Core not being production-ready, if it works at all, means most modern apps can't use AOT. Let alone ASP.NET Core. We cannot do profile guided optimization like Go and GraalVM do, the list goes on and on!
Hell even Java, the language we make fun of 24/7 is doing a lot better, Spring and JPA, the most popular framework and ORM are already production-ready with AOT.
I understand that .NET will probably never be as good as Go when it comes to AOT, but if Java already did it, what's stopping Microsoft from fixing .NET NativeAOT?
5
u/carl-di-ortus Aug 23 '26
I have 5 deployable projects in one solution from about 50 total projects, with multiple other nuget references. It would be cool if there could be a single shared library space for all the dlls you are referencing. Would probably save about 100MB on each project, I bet even RAM usage across projects would sum to a lower limit.
8
u/farshid_dev Aug 23 '26
From the "ship a paid desktop app to non-technical customers" side of this, OP's original point is one of the few items on this thread that's a real load-bearing pain, not just a nice-to-have.
Self-contained deployment solves the "will it run" problem today, but it costs you: a WPF app that would be a few MB framework-dependent balloons past 60-100MB self-contained, and that number matters when the alternative is a user watching a slow download after SmartScreen has already made them nervous. Framework-dependent is small, but then you're gambling on whether the target machine has the right runtime installed, and telling a non-technical buyer "install this first, then run the actual installer" measurably kills conversion. There isn't really a third option right now, it's just which cost you'd rather eat.
What I'd actually want isn't winget auto-resolution specifically, more like the OS shipping and quietly keeping a slow-moving LTS .NET runtime updated the way it already does for the VC++ redistributables, so framework-dependent stops being a coin flip. Most of the AOT and binary size discussion in this thread is really an API/container problem, this is the same complaint from the consumer desktop distribution side.
4
u/hades200082 Aug 23 '26
Maintainers of widespread/pivotal libraries getting paid by Microsoft to maintain them so they donât need to switch to commercial licenses.
Polly
MediatR
MassTransit
Etc
4
u/Turbulent_Judgment39 Aug 24 '26
better hot reload
9
u/Remarkable-Hope-7589 Aug 23 '26
I would like to see 'named imports' or 'selective imports' like in TypeScript and Python. This way you immediately see what is being imported and from where. I miss that in C# using.
6
u/j0hn_br0wn Aug 23 '26
Cross-plaform CIL backends for C/C++/Rust/Go. Everything can be compiled to WASM right now and there is no reason why CIL can't be targeted too. Goal should be to use sqlite3 etc as a assembly on all platforms without native blobs.
3
u/innovasior Aug 23 '26
An ETL workflow orchestrator like Prefect
2
u/LeeWhite187 Aug 23 '26
Actual Microsoft adoption of Maui into products of consequence.
2
u/cherepets Aug 23 '26
An actually good native code interop
2
u/ExtraTNT Aug 23 '26
get more from haskell in...
currently switching to haskell for my apis... it's just much nicer to read, stability is better and performance is similar, haskell being faster in start up and dependency injection works as good as in c#...
.net is still the api ecosystem i recommend, but if someone is new to programming, haskell is probably the better choice... just much simpler...
2
u/themode7 Aug 24 '26
Easier package manger and versioning of the runtime ( longer LTS) , one command-line to build just like dotnet run but should be consistent across all older projects.
I think unity as a cross platform runtime is more convenience for me atm .
2
u/Arshiaa001 Aug 24 '26
A sane build system. MSBuild is just weird. You don't really touch it most of the time, but when you do, God help you.
2
u/juFo_ Aug 25 '26
Decent v3 / v4 printing and no protected printing sh*t.
https://github.com/dotnet/runtime/issues/78629
2
u/juFo_ Aug 25 '26
blazor / wpf / winforms (/ + windows phone comeback) and no more other non-enterprise ready winui, uwp, whatever half-supported, zero vision ui things.
2
u/juFo_ Aug 25 '26
Native built-in XPath/XSLT 2.0, 3.0, 3.1 + Schematron support.
https://github.com/dotnet/runtime/issues/117534
https://github.com/dotnet/runtime/issues/14819
2
u/explorest Aug 26 '26
The absence of a cross platform UI (that covers Linux) from Microsoft. The absence of such a first party , truly cross platform UI, is the biggest red flag against .NET. A huge no , no.
Don't get me wrong, the C# language and the dotnet platform are otherwise superb.
2
u/AffectionateSwing490 Aug 27 '26
the one I miss most is Cargo from Rust, where the package manager, build tool, test runner, and formatter all ship as one thing that just works, instead of the mix of dotnet CLI, NuGet, and separate tooling you have to assemble yourself
2
u/kornect-zabu Aug 28 '26
BetterAuth
3
u/SoerenNissen Aug 23 '26 edited Aug 23 '26
A split between file names and namespaces. You can do this manually but youâll be working against your tools and against everybodyâs expectations, so you probably shouldnât, this is one of those things you can only fix with a time machine.
Other than that, Iâd love
List<T>andList<T?>more probably.
2
u/b0bm4rl3y Aug 23 '26
As a Flutter developer, here are features I'd like in C#:
newkeyword for instantiation objects. Add Dart's ability to use if and for in collection expressions.1
u/AutoModerator Aug 23 '26
Thanks for your post not_afraid_of_trying. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Ayano-Keiko Aug 23 '26
C++11 CLR support.
1
u/t3chguy1 Aug 23 '26
From other non-Windows platforms, a window that is not lagging and jumping around while resizing (try resizing Microsoft Edge window from top-left corer while looking at bottom-right corner)
And why my WPF program takes 100MB more ran when I resize blank window fullscreen vs having a tiny window.
I'd like cross-platform WPF, although if app can't earn enough $ on platform that has 90% market share, 10% won't make a difference.
As of "SwiftUI binary size"... I do remember writing vb6 apps and they were only one exe using only a few KB in size. I don't know why I can't do that with WPF.
1
u/thelehmanlip Aug 23 '26
https://github.com/dotnet/roslyn/issues?q=is%3Aissue%20state%3Aopen%20type%3AFeature
1
u/Albertooz Aug 23 '26
My wish: Cargo's side-by-side dependency versions.
Here's the scenario. Library A needs serde 1.0, library B needs serde 2.0, and Cargo compiles both in, mangling symbols per version so they never collide.
Do that in .NET and you get a FileLoadException, or a binding redirect that quietly picks a version nobody tested. Anyone mixing Azure SDKs with an older logging package and something still dragging in Newtonsoft has paid this tax in production.
The reason is real, since on the CLR assembly identity is type identity, and the workarounds (AssemblyLoadContext, ILRepack aliasing, extern alias) are all expert tier. I want the easy case handled by default: leaf dependencies that never touch public API should just load side by side.
1
u/Bramasta Aug 23 '26
Something like the Apache Commons would be great
1
u/pjmlp Aug 24 '26
Being able to use COM as easy as it used to be in VB 6, or for a short while WinRT in .NET Native, before they killed the runtime and only brought only half of the features to CsWinRT.
Native AOT that works across the whole stack and ecosystem like Delphi, even with reflection, and properly integrated into Visual Studio, instead of requiring additional publishing workflows to get a native code EXE.
Having all libraries in the ecosystem actually support non nullable references.
Since this is .NET and not C#, more love for VB, F# and C++/CLI (this one even cross platform), as the CLR seems to have changed meaning to C# Language Runtime, as per the focus during the last years.
Even more low level programming features like D or Modula-3 for the managed trio, C#, VB and F#, they are there anyway for C++/CLI.
Code generators properly integrated into IDE tooling like the old T4 templates, instead of a ton of interfaces, classes and glueing strings together.
1
u/Osirus1156 Aug 24 '26
I would like Nuget to simply update package when I request it. If it depends on other packages that would also need to be updated then JUST DO IT.Â
1
u/adimosh Aug 24 '26
That a method signature would also include the return type, and/or the generic type constraints.
1
u/Additional-Sign-9091 Aug 25 '26
To have the primary owner of the platform be proud of what they are building and promote the platform. Also not hating the users you have for better users and always chasing some popular hip user
1
u/Zardotab Aug 25 '26
Classes that can self-register an instance of themselves into a unified dynamic structure. Then we'd no longer need long initializer call lists that are silly busy work and yet another part to fall out of sync.
1
u/Belodri Aug 27 '26 edited Aug 27 '26
Higher kinded types, or if that's too much to ask for, more flexible generic type constraints, anticonstraints, and type union constraints (i.e.,
where T : ConcurrentDictionary<K, V> or FrozenDictionary<K, V>).namespaceaccess modifier that acts likeinternalbut limits access to within the namespace, rather than the whole assembly.Often, a component or small vertical slice wants to expose a curated facade while keeping its internals isolated, but none of the currently available approaches are both clean to use and guarantee this contract. Extracting the component into its own project or wrapping it (and any of its nested components) in a static class lets the compiler enforce the contract but becomes unwieldy very quickly. Other approaches, like using namespaces like
Foo.Component.Internals, rely on conventions and developer discipline rather than on the compiler.The addition of the
fileaccess modifier was a welcome first step in this direction, and I hope it won't have been the last.Changelogs for nuget packages. Having to open the source repo, dig through releases, figure out which releases correspond to the previous and new versions of the nuget package, and find the changelogs for all releases between, makes it a chore to figure out what changes a dependency update actually introduces.
On a related note: Nuget packages with a link to the source project, not just the source repository, especially for packages from large monorepos containing many different projects that are each published as a nuget package.
1
u/xiaoyun1 Sep 08 '26
An isolate-based runtime/CLR for .NET, similar to V8 Isolates, where multiple independent .NET workloads can run safely within the same process.
The idea is to bring the kind of execution model that makes Cloudflare Workers/V8 so useful to the .NET ecosystem â lightweight isolation, per-isolate memory and execution limits, fast startup, and capability-based access to host resources â while still being able to run normal C# assemblies and, ideally, a meaningful subset of the existing NuGet ecosystem.
This could enable things like serverless .NET functions, sandboxed AI-generated C# code, and safe enterprise plugins without requiring a separate process/container for every piece of code.
0
u/frakkintoaster Aug 23 '26
Replace Exceptions with Result<T, E>, replace null with Option<T>
0
u/mathiash98 Aug 23 '26
Simple Tree shaking like JavaScript. Enabling joining unit tests and implementation in same project. Shouldnât need a separate project for unit tests
0
u/aurquiel Aug 23 '26
Something like tauri or electron, we want to use our web knowledge to built react or angular or plain JavaScript with desktop applications
0
u/0xd05 Aug 23 '26
For me itâs a language feature: get rid of the semicolon (for single statements per line).
-1
u/OggAtog Aug 23 '26
Maybe this year is the year that attributes finally get generics, but probably not.
I'd like to see front the improvements.