Build the Tizen .NET NuGet Package
TizenFX APIs allow you to access Tizen-specific platform features not covered by the generic .NET standard and Xamarin APIs, such as system information and status, battery status, sensor date, and account and connectivity services.
The best way to understand the TizenFX APIs and modify them to make your own customizations to Tizen.NET is to build and publish your own NuGet package. In this post, we discuss how you can build it locally.
To build Tizen .NET NuGet, you must have .NET Core SDK 2.0 or higher installed on your machine. See here for instructions on how to download and install the .NET Core SDK.
Download the source code
Download the latest TizenFX source code. You can clone the TizenFX repository, as shown below.
# git clone email@example.com:Samsung/TizenFX.git
TizenFX has several release branches for API level management. For instance, the API4 branch is the release branch for Tizen .NET API Level 4, and the API5 branch is the release branch for Tizen .NET API Level 5. No new public API changes (additions, deletions and modifications) are allowed in these branches, because all public APIs have already been committed. However, you can freely add or modify APIs in the master branch, which is the working branch.
Build the solution
After you download and modify the source code, you can build the source code. TizenFX provides a very simple script,
build.sh, to build the solution.
To build a specific module, use:
# build.sh build [module]
To build the entire solution, use:
# build.sh full
If the build was successful, you can package Tizen .NET NuGet. Packaging NuGet is done using
The following command creates your own Tizen.NET NuGet package, which will be located in your root directory.
# build.sh pack
If you want to create a NuGet package with a specific package version, specify the version as follows:
# build.sh pack [version]
Publish the NuGet package
The generated Tizen .NET NuGet package can be uploaded to your private package repository (for example, MyGet) or your local repository for distribution.
Now you’re ready to build with Tizen.NET and distribute within your own organization. Enjoy!