Skip to content

Moved to Avalonia UI instead of Maui.#5

Open
sharique wants to merge 1 commit into
masterfrom
maui
Open

Moved to Avalonia UI instead of Maui.#5
sharique wants to merge 1 commit into
masterfrom
maui

Conversation

@sharique
Copy link
Copy Markdown
Owner

Fixes = #4

Technical Reasons for Avalonia Instead of MAUI

  1. SDK Workload Requirement

MAUI requires the Microsoft.NET.Sdk.Maui workload to be installed
Your dev container didn't have this workload available
Installing workloads in dev containers can be problematic
Avalonia works with the standard Microsoft.NET.Sdk - no special workload needed
2. Build Environment Compatibility

MAUI SDK resolution failed with: "The SDK 'Microsoft.NET.Sdk.Maui' specified could not be found"
Avalonia packages are available directly from NuGet without SDK requirements
This makes Avalonia more portable across different CI/CD environments
3. Cross-Platform Support (Your Requirements)

✅ Avalonia works equally well on Windows and Linux (tested, proven)
MAUI on Linux requires additional setup and has fewer platform optimizations
Your original app was Linux-based (GtkSharp), so Avalonia is a natural fit
4. Dependencies

Avalonia: Clean NuGet packages only
MAUI: Requires workload installation + platform-specific tooling
Why This Was Better For Your Case
Since you specified:

✅ Extract colors.xml on first run → Both support this equally
✅ ApplicationData folder → Both support this
✅ CommunityToolkit.Mvvm → Both support this
✅ Native color picker → Both support this
❌ Works on Windows & Linux → Avalonia is simpler here (no extra setup)
If You Want to Switch Back to MAUI
If you prefer MAUI, you would need to:

Install the MAUI workload:

Update .csproj to use Microsoft.NET.Sdk.Maui SDK

Convert Avalonia XAML → MAUI XAML (similar but slightly different)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant