The Tizen .NET framework allows you to easily and efficiently create applications for Tizen. This topic describes the basic steps for creating and running a .NET TV application. It also describes how you can create a Tizen project as part of a cross-platform solution.
Study the following instructions to help familiarize yourself with the Tizen .NET application development process. With the instructions, you can create and run a basic .NET application, which displays some text on the screen with no user interaction.
Before you start developing Tizen applications, set up the development environment.
Create a project using Visual Studio.
This step shows how you can use a predesigned project template that creates all the basic files and folders required for your project.
Build the application.
After you have implemented code for the features you want, this step shows how you can build the application to validate and compile the code.
Deploy and run the application.
This step shows how you can deploy and run the application on the emulator or a real device. You can also debug the application.
The following example shows you how to create and configure a basic Tizen .NET TV application project in Visual Studio. An application project contains all the files that make up an application.
To create a new Tizen .NET project:
A solution with 2 projects is created and shown in the "Solution Explorer" view:
If you are already familiar with Xamarin.Forms, this project has the same structure as a Xamarin.Forms portable application. The <projectname> project is the portable class library and the other is a platform-specific project; in Tizen .NET, only a Tizen platform-specific project is generated.
The ".cs" file in the portable project already contains simple Xamarin.Forms code that makes a basic UI.
After you have created the application project, you can implement the required features. In this example, only the default features from the project template are used, and no code changes are required.
When your application code is ready, build the application. The building process performs a validation check and compiles your files. You must sign the application package with an author certificate when building the application. If you have not yet registered a Tizen certificate in Visual Studio, see Certificate Manager.
There are 2 different ways to build the application:
Tizen .NET applications are always deployed as installed packages. The package files have the ".tpk" file extension, and the package generation is controlled by the manifest file. The Visual Studio template generates the manifest file ("tizen-manifest.xml") to the top level of the <projectname>.Tizen project (if you create a project with both mobile and TV profiles, a separate manifest file is generated for each profile).
After you have built the application, deploy and run it.
To run the application, you must first deploy it to the target: either an emulator or a device. Deploying means transferring the package file (".tpk") to the target and invoking the Tizen package manager to install it.
To deploy and run the application on the emulator:
To deploy and run the application on an actual TV:
The Xamarin cross-platform template consists of a shared PCL (Portable Class Library) and multiple platform-dependent application projects. If you create your Tizen project as a cross-platform solution, you can easily add other platform-dependent project versions, such as iOS and Android™, to the same solution later.
To create a cross-platform solution and add a Tizen project to it: