r/visualbasic • u/Bonejob VB Guru • May 21 '26
Article VB on Avalonia: the VB6 form-and-handler model, cross-compiled to Linux from Visual Studio 2026
https://evilgeniuslabs.ca/blog/vb-on-avalonia-cross-platform
18
Upvotes
2
u/Bonejob VB Guru May 21 '26
A couple of weeks ago I argued in another post that WinForms in Visual Studio 2026 is still the same Cooper-and-Geary form designer from 1987. That was a Windows-only story. Avalonia is the natural follow-up question: does the VB6 loop survive when you take Windows out of the picture?
I spent the weekend building the proof. Small Avalonia 11 app, written in Visual Basic, on .NET 10, opened in Visual Studio 2026. Two update patterns side by side in one window —
x:Namewith direct assignment in code-behind (the VB6 reflex), and{Binding}withINotifyPropertyChanged(the modern XAML approach). Same VB source publishes to a 47 MB self-contained win-x64 .exe and a 47 MB self-contained linux-x64 ELF, from the same Windows box, one command per target.The one wart: there is no
dotnet newtemplate for VB on Avalonia. The.vbprojis hand-rolled. Once that file is right, everything downstream behaves normally (previewer renders, F5 launches, hot reload works, publish produces single-file binaries).Repo is public with two build guides: https://github.com/EvilGeniusCore/VB-Avalonia
Full write-up: https://evilgeniuslabs.ca/blog/vb-on-avalonia-cross-platform
Curious whether anyone else has tried this combination, and whether
linux-arm64publishes as cleanly. That is my next test.2
u/IncredibleBihan May 21 '26
ooo fancy sauce.
1
u/rogerkorby May 22 '26
I know many of the words, but l together they confuse me. What does this do? Honestly curious.
1
u/jd31068 May 22 '26
Pretty incredible stuff!!
1
u/lev400 Jun 09 '26
Haha good job - I like Avalonia - but only for C# apps eh