Getting Started
Create your first Xui app and run it in a phone emulator on your desktop.
Prefer to build it yourself? Start step by step ↓
Start step by step
1. Install .NET
Xui applications are written in C# and need the .NET 10 SDK to build and run. Download the .NET 10 SDK for your computer, then check the installation in a terminal:
dotnet --version
The version should start with 10.. The emulator runs on Windows or macOS;
you do not need an Android or iOS SDK for this guide.
2. Install the Xui templates
dotnet new install Xui.Templates
Create an application called MyApp:
dotnet new xui -n MyApp
cd MyApp
This guide describes the refreshed starter template. Its updated NuGet package is being prepared for release.
3. Run the emulator
dotnet run --project MyApp.Emulator.csproj
A desktop window opens with your app inside a phone emulator. Try Hello, Xui!, Counter, and About, then use Back to return home.
Your app's pages are ordinary C# files. Open CounterPage.cs to start making it
your own.
4. What's next?
Continue to Reference for the full table of contents, from pages and navigation to input, drawing, and testing.