Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Samsung/Tizen.NET
Welcome to Tizen .NET
https://github.com/Samsung/Tizen.NET
Last synced: 7 days ago
JSON representation
Welcome to Tizen .NET
- Host: GitHub
- URL: https://github.com/Samsung/Tizen.NET
- Owner: Samsung
- License: other
- Created: 2019-02-14T06:49:44.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T05:08:23.000Z (2 months ago)
- Last Synced: 2024-09-14T00:25:48.504Z (2 months ago)
- Language: C#
- Homepage:
- Size: 89.8 MB
- Stars: 209
- Watchers: 18
- Forks: 30
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tizen .NET
![image](https://user-images.githubusercontent.com/14328614/115324121-49473f00-a1c4-11eb-844c-86970c5e0764.png)[Tizen .NET](https://developer.samsung.com/tizen/About-Tizen.NET/Tizen.NET.html) is an advanced way to develop applications with .NET technology for Tizen OS.
Tizen .NET is :
- Support [TizenFX](https://github.com/Samsung/TizenFX)
- Support .NET [MAUI](https://github.com/dotnet/maui)
- Support .NET 6## Prerequisites
**- Tizen SDK**
* [Tizen Extensions for Visual Studio Family](https://developer.tizen.org/development/tizen-extensions-visual-studio-family) or
* [Tizen Studio](https://developer.tizen.org/development/tizen-studio)**- .NET 6 SDK**
* Linux / Windows / macOS : https://dotnet.microsoft.com/download/dotnet/6.0
**- Visual Studio 2022**
* To create Tizen .NET with .NET 6, you need the latest version of [Visual Studio 2022](https://visualstudio.microsoft.com/)**- Tizen .NET Workload**
* [Installing Tizen .NET Workload using Visual Studio / Visual Studio Code / CLI](https://github.com/Samsung/Tizen.NET/wiki/Installing-Tizen-.NET-Workload).## Getting Started with Visual Studio 2022
See [here](https://github.com/Samsung/Tizen.NET/wiki/Build-your-first-(.NET6)-Tizen-App-using-Visual-Studio-2022) for more details.![](https://github.com/Samsung/Tizen.NET/blob/a710d7095ca9ba0a759705dc59461140dec13ae4/assets/hello-tizen-net6-vs2022.gif)
## Getting Started with CLI
#### 1. Check the Tizen templates before creating a new Tizen Project
You can see the Tizen template as follows if it is properly installed.
```sh
dotnet new --list
Template Name Short Name Language Tags
-------------------------------------------- -------------- ---------- ----------------------
Console Application console [C#],F#,VB Common/Console
Class Library classlib [C#],F#,VB Common/Library
Worker Service worker [C#],F# Common/Worker/Web
MSTest Test Project mstest [C#],F#,VB Test/MSTest
NUnit 3 Test Item nunit-test [C#],F#,VB Test/NUnit
NUnit 3 Test Project nunit [C#],F#,VB Test/NUnit
xUnit Test Project xunit [C#],F#,VB Test/xUnit
*Tizen .NET Application** *tizen* *[C#]* *Tizen*
Razor Component razorcomponent [C#] Web/ASP.NET
Razor Page page [C#] Web/ASP.NET
...```
#### 2. Creates a New Project
```sh
dotnet new tizen -n HelloTizenNet6
```
When the project is successfully created, the following files are created.
```sh
└── HelloTizenNet6
├── HelloTizenNet6.csproj
├── Main.cs
├── shared
└── tizen-manifest.xml
```> This is a Tizen .NET app, not a .NET MAUI app.
#### 3. Build the application
```sh
dotnet build
```
When the project builds successfully, tizen app package (.tpk) is created as follows.
```sh
Microsoft (R) Build Engine version 16.10.0-preview-21181-07+073022eb4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.Determining projects to restore...
Restored /home/rookiejava/workspace/HelloTizenNet6/HelloTizenNet6.csproj (in 165 ms).
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
HelloTizenNet6 -> /home/rookiejava/workspace/HelloTizenNet6/bin/Debug/net6.0-tizen/HelloTizenNet6.dll
TizenTpkFiles : shared/res/HelloTizenNet6.png
TizenTpkFiles : tizen-manifest.xml
HelloTizenNet6 is signed with Default Certificates!
HelloTizenNet6 -> /home/rookiejava/workspace/HelloTizenNet6/bin/Debug/net6.0-tizen/com.companyname.HelloTizenNet6-1.0.0.tpkBuild succeeded.
0 Warning(s)
0 Error(s)Time Elapsed 00:00:04.83
```#### 4. Run the application
```sh
dotnet build HelloTizenNet6/HelloTizenNet6.csproj -f net6.0-tizen -t:Run
```> ℹ️ You need to use Tizen emulator 7.0 or higher version to run .NET 6 based app.