-
Notifications
You must be signed in to change notification settings - Fork 31
Build your first .NET MAUI App for Tizen
-
An environment that has been configured for .NET MAUI development. For more information, see Install latest .NET 6.
-
An environment that has been configured for Tizen .NET development. For more information, see Install Tizen workload for .NET 6.
ℹ️ Visual Studio for Mac support will arrive in a future release.
In this tutorial, you'll create your first .NET MAUI app in Visual Studio 2022:
1. Launch Visual Studio 2022 17.2 (Preview 5.0+), and in the start window click Create a new project to create a new project.
2. In the Create a new project window, select MAUI in the Project type drop-down, select the .NET MAUI App (Preview) template, and click the Next button.
3. In the Configure your new project window, name your project, choose a suitable location for it, and click the Create button.
4. Wait for the project to be created, and its dependencies to be restored.
5. Select Edit Project File in the Solution Explorer.
6. Uncomment following line to build tizen app.
<TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks>
7. Choose Target Framework to net6.0-tizen in the toolbar and build the project. That's all!
ℹ️ Deploy and Debugging through Visual Studio will arrive in the future. It's recommended to install and run apps through CLI as decribed below.
In this tutorial, you'll create and run your first .NET MAUI app for Tizen using the .NET command-line interface (CLI):
- In the .NET CLI, create a new .NET MAUI app:
dotnet new maui -n HelloMaui
- In the .NET CLI, change directory to the newly created project and open the Visual Studio Code:
cd HelloMaui
code .
- Build and launch the app
ℹ️ You need to use Tizen emulator 7.0 or higher version to run .NET 6 based app.
dotnet build -t:Run -f net6.0-tizen
ℹ️ It's recommended to start a Tizen emulator before building and launching your app