I would usually agree, but what I’m building [1] needs to 1. access shared memory data from a (windows only) game and pass that through to the frontend and 2. be able to access a lot of windows‘ window APIs, so this was the easiest way to go for me. I also know
some C# from my school days and I actually like the language, so that’s a plus.
I did opt for using WebView2 for rendering all the fancy frontend stuff since I’m first and foremost a web dev and much more comfortable for building UI that way, so I kind of just made my own little electron, which is actually nice because the resulting app should be a lot smaller than any electron installation.
[1] a HUD overlay for RaceRoom, a racing simulation