r/PowerShell • u/mdgrs-mei • Mar 09 '26
AvaloniaUIShell: Cross-platform Desktop GUI framework for PowerShell
About a year ago, I released a module called WinUIShell. Leveraging that experience, I created a cross-platform GUI framework this time.
https://github.com/mdgrs-mei/AvaloniaUIShell
Historically, the GUI thread on macOS needs to be the main thread of a process. However, the thread where our PowerShell scripts run is not the main thread of a pwsh process which seems to be hard to change. I guess that's why there was no cross-platform desktop GUI solution in PowerShell. The server and client model of the module solves this problem and also simplifies the GUI blocking issue.
I will be working on adding more examples and fixing issues for a while. I'd really appreciate it if you could give it a try and let me know what you think. Thank you!
2
u/pbx_guy Mar 10 '26
Very interesting, just carried out some prototyping to put a cross platform UI on the front of a PowerShell script I use for Teams Voice deployments. Seems to be doing the job so far.
4
u/realslacker Mar 09 '26
Looks interesting, I'll check it out
1
u/dodexahedron Mar 10 '26
Just checking... Did you clear the name with them?
You can say Avalonia freely. But AvaloniaUI is a trademark and requires written permission for use.
Read that whole document. They are pretty clear on it.
Or just rename or get permission, if you haven't already, before you get a C&D. 😅
This part is also important: https://avaloniaui.net/legal-center/trademark-guidelines#important-distinction
1
u/Sufficient_Duck_8051 Mar 10 '26
Why did you call it Avalonia? Are you affiliated with them in any way? If not then it’s not only illegal to use trademark names but also misleading peopleÂ
2
u/Szeraax Mar 09 '26
That does look cool
2
u/QuidHD Mar 10 '26
This is pretty awesome. Wish I had this back in my SysAdmin days
1
u/ReputationOld8053 Apr 14 '26
Thanks for it.
I am always wondering by this kinds of projects, can you not include it directly to the Avalonia project and become a supporter there? This would probably secure the existence of the PowerShell functionality
-1
u/MFKDGAF Mar 10 '26
Is this vibe coded or natty?