News for hackers. Stuff that matters.
Re:Ask HN: Why is building Windows apps so complicated? by pjc50 on Sunday December 12, 2021 @11:44AM (#29531066)
This is probably the easiest way. The tragedy is that this explicitly rejects all the subsequent developments since WPF - UWP, WinUI3 - because they don't work nearly as well.

If you want an installer BTW, use "Wix".

If you are eligible for VS Community, do give it a go: https://visualstudio.microsoft.com/vs/community/ since that has the WPF designer in (the WinUI3 designer is inexcusably broken)

Re:Ask HN: Why is building Windows apps so complicated? by Tempest1981 on Sunday December 12, 2021 @12:11PM (#29531351)
> the WinUI3 designer is inexcusably broken

I just tried VS2022, and the UI designer for WinUI3 is completely non-functional? What is the recommended approach to lay out the UI pages these days?

Re:Ask HN: Why is building Windows apps so complicated? by pjc50 on Sunday December 12, 2021 @12:19PM (#29531423)
Realistically you have three options:

- ignore Winui3 and do it in WPF (fewer controls, deprecated, actually works)

- do it blind in XAML, possibly with the aid of a piece of paper. Or the "live view" in VS if that works. (Live View is the suggestion given on the github issue for "designer doesn't work", fwiw)

- do it in the UWP designer, then s/Windows/Microsoft/ in the control namespaces

Re:Ask HN: Why is building Windows apps so complicated? by chrisandchris on Monday December 13, 2021 @07:12AM (#29538860)
That's what i really love about the MS ecosystem. There are actually 3 ways to achieve a task, but none of it works fully end-to-end.
Re:Ask HN: Why is building Windows apps so complicated? by jhanschoo on Sunday December 12, 2021 @11:28PM (#29536607)
holy shit
Re:Ask HN: Why is building Windows apps so complicated? by p2t2p on Wednesday December 15, 2021 @03:00AM (#29563190)
Exactly. And then people wonder why everything is electron nowadays. Native UI development on any platform is pure garbage compared to frameworks in Web frontend.

I hope SwiftUI and flutter will be able to make it at least a little bit better.