- Add comprehensive ControlGallery sample app with 12 pages demonstrating all 35+ controls - Add detailed ROADMAP.md with version milestones - Add README placeholders for VSIX icons and template images - Sample pages include: Home, Buttons, Labels, Entry, Pickers, Sliders, Toggles, Progress, Images, CollectionView, CarouselView, SwipeView, RefreshView 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| OpenMaui.VisualStudio | ||
| README.md | ||
README.md
OpenMaui Visual Studio Extension
This Visual Studio extension adds Linux platform support for .NET MAUI applications.
Features
Project Templates
When installed, you'll see "OpenMaui Linux App" in Visual Studio's New Project dialog:
File → New → Project → Search "OpenMaui"
Launch Profiles
The template includes pre-configured launch profiles:
| Profile | Description |
|---|---|
| Linux (Local) | Run directly (requires Linux or WSL with GUI) |
| Linux (WSL) | Run via Windows Subsystem for Linux |
| Linux (x64 Release) | Build and run release for x64 |
| Linux (ARM64 Release) | Build and run release for ARM64 |
| Publish Linux x64 | Create self-contained x64 package |
| Publish Linux ARM64 | Create self-contained ARM64 package |
How It Works
┌─────────────────────────────────────────────────────────┐
│ Visual Studio │
├─────────────────────────────────────────────────────────┤
│ File → New → Project │
│ └── OpenMaui Linux App ← This extension adds this │
├─────────────────────────────────────────────────────────┤
│ Debug Dropdown │
│ ├── Linux (Local) │
│ ├── Linux (WSL) ← Launch profiles │
│ ├── Linux (x64 Release) │
│ └── Publish Linux... │
└─────────────────────────────────────────────────────────┘
Installation
From Visual Studio Marketplace
- Open Visual Studio 2022
- Extensions → Manage Extensions
- Search for "OpenMaui"
- Click Download and restart VS
From VSIX File
- Download
OpenMaui.VisualStudio.vsix - Double-click to install
- Restart Visual Studio
Building the Extension
Prerequisites
- Visual Studio 2022 with "Visual Studio extension development" workload
- .NET Framework 4.8 Developer Pack
Build Steps
cd vsix/OpenMaui.VisualStudio
dotnet restore
msbuild /p:Configuration=Release
The VSIX will be in bin/Release/OpenMaui.VisualStudio.vsix
Project Structure
vsix/
└── OpenMaui.VisualStudio/
├── OpenMaui.VisualStudio.csproj # Extension project
├── source.extension.vsixmanifest # VSIX metadata
├── ProjectTemplates/ # VS project templates
│ └── OpenMauiLinuxApp/
│ ├── OpenMauiLinuxApp.vstemplate
│ ├── OpenMauiLinuxApp.csproj
│ ├── Program.cs
│ ├── App.cs
│ ├── MainPage.cs
│ ├── MainPage.xaml
│ └── Properties/
│ └── launchSettings.json
└── Resources/
├── Icon.png
└── Preview.png
Adding Linux to Existing MAUI Projects
If you have an existing MAUI project and want to add Linux support:
Option 1: Add Platform Folder
- Add
Platforms/Linux/Program.csto your project - Add
OpenMaui.Controls.LinuxNuGet package - Copy
launchSettings.jsonfrom template toProperties/
Option 2: Create Companion Project
- Create new "OpenMaui Linux App" project
- Reference your shared MAUI library
- Build Linux version separately
Debugging on Linux
Via WSL (Recommended)
- Install WSL 2 with Ubuntu
- Install .NET SDK in WSL:
sudo apt install dotnet-sdk-9.0 - Install X11 libs:
sudo apt install libx11-6 - Select "Linux (WSL)" profile and press F5
Via Remote Machine
- Set up SSH access to Linux machine
- Install
vsdbgon remote machine - Configure remote debugging in VS
Via Virtual Machine
- Set up Linux VM (VMware, VirtualBox, Hyper-V)
- Share project folder with VM
- Build and run inside VM
Troubleshooting
"Cannot find 'wsl.exe'"
Install WSL: wsl --install in PowerShell (Admin)
"Display not found"
Ensure WSLg is enabled (Windows 11) or configure X server (Windows 10)
Template not appearing
- Clear template cache:
devenv /updateconfiguration - Restart Visual Studio
License
MIT License - Copyright (c) 2025 MarketAlly LLC
Developed by MarketAlly LLC • Lead Architect: David H. Friedel Jr.