4 ms·
Did you need to build a GUI? It feels like Microsoft invents some new Windows UI library every 5 years or so and deprecates the previous one. The last I used .N
by trinovantes 4y ago
Did you need to build a GUI? It feels like Microsoft invents some new Windows UI library every 5 years or so and deprecates the previous one. The last I used .NET, it was WPF but I hear WinUI is the hot thing now.
- pjc50 4y agoYes, I was wondering where they were rasterizing to. Although of course the most long-lived way is to just P/Invoke straight into user32.dll to bring up a window. (The last time I wrote a 3D rasterizer was in 1996, and I had to type my dependencies in from paper into Borland Turbo C)
- actionfromafar 4y agoYou remember that demo where someone made an EXE from C# and made it run on Windows 3.1? I wish there was some streamlined way (config of VS Code?) of doing that, not as extreme, but building regular Win32 apps without the .NET runtime, but with the C# language. Like how you can still use modern C++ but target just Win32. That would be I think, an awesome compromise of power. C# is a really great language all on its own, without the .NET standard library.
- pjc50 4y agoI'd forgotten about that, do you have a link handy? It might be doable in MSBuild. I might actually have a use case for this as well, after battling problems of self-contained apps. The "AOT" compiler is basically "run the JIT upfront".
- actionfromafar 4y agohttps://www.hanselman.com/blog/net-everywhere-apparently-also-means-windows-311-and-dos https://www.hanselman.com/blog/net-everywhere-apparently-als...
- bob1029 4y agoA bitmap that is then encoded to the client as jpeg or x264 data across the websocket. The hard part is making the pixels get to the human eyeballs. I handwave that away with the browser. Imagine a very primitive version of stadia.
- thomascgalvin 4y agoGUI frameworks are subject to more churn than, I think, any other programming domain. On the desktop, you have WPF, WinUI, QT, GTK, Swing, JavaFX, Electron, and a dozen more. On the frontend, you have React, Angular, Svelte, Ember, Vue, and probably a thousand more, plus roughly as many CSS toolkits as there are atoms in the universe. And honestly? None of them are that great. Most of them are perfectly functional, but at some point you hit a limit of their abstractions, and start fighting against the framework, rather than fighting alongside it. This is probably true of any domain if you go deep enough, but UI development seems significantly more fraught with danger and churn than the backend.
- P5fRxh5kUvp2th 4y agoThis is because the current UI solutions are windows only and they're trying to create something that works cross-platform.
- electroly 4y agoI've been writing Windows Forms applications for 21 years. It's still officially supported and maintained on the latest .NET. I don't think it will ever die. Microsoft invents new libraries but they deprecate nothing.
- pjmlp 4y agoThe hot new thing its Blazor the WebAssembly framework. They are pushing it everywhere, even inside Web widgets on MAUI. Then you have MAUI, which is basically the rebranding of Xamarin Forms, but it does required a bit of rewriting, and apparently there are some bugs still. And on the Mac they have taken the shortcut of building on top of Catalyst to reuse iOS Xamarin. Then you have the WinDev team pushing WinUI 3.0, still behind UWP capabilities and moreso behind WPF. Currently on .NET your safest bets are Windows Forms, WPF, the 3rd party projects like Avalonia and Uno, or if the use case is possible, Web. I would wait for MAUI to mature a bit more, consider WinUI a implementation detail of MAUI on Windows, and ignore it for everything else.