uid |
---|
Uno.GetStarted.vs2022 |
This getting started will guide you through setting up your environment to create Uno Platform applications using C# and .NET with Visual Studio 2022.
Tip
If you want to use another environment or IDE, see our general getting started.
To create Uno Platform applications you will need Visual Studio 2022 17.8 or later:
-
ASP.NET and web development workload installed (for WebAssembly development)
-
.NET Multi-platform App UI development workload installed (for iOS, Android, Mac Catalyst development).
-
.NET desktop development workload installed (for Skia-based targets development)
Important
Uno Platform 5.0 does not support Xamarin projects anymore. To build Xamarin-based projects in Visual Studio 2022, in Visual Studio's installer Individual components
tab, search for Xamarin and select Xamarin
and Xamarin Remoted Simulator
. See this section on migrating Xamarin projects to .NET 6.
[!includeuse-uno-check]
-
Launch Visual Studio 2022, then click
Continue without code
. ClickExtensions
->Manage Extensions
from the Menu Bar. -
In the Extension Manager expand the Online node and search for
Uno
, install theUno Platform
extension or download it from the Visual Studio Marketplace, then restart Visual Studio.
It is possible to build and debug Skia Desktop projects under WSL if you choose to do so.
To setup your environment for WSL:
- Install WSL Ubuntu 22.04 or later
- Install the prerequisites for Linux mentioned below, in your installed distribution using the Ubuntu shell
Note
Running Uno Platform apps using WSL makes use of WSLg's support for Wayland.
[!includelinux-setup]
You're all set! You can create your first Uno Platform app.