Thanks to visit codestin.com
Credit goes to github.com

Skip to content

strogo/Tizen.NET

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Tizen .NET

image

Tizen .NET is an advanced way to develop applications with .NET technology for Tizen OS.

Tizen .NET is :

Getting Started

This is an early preview of Tizen in .NET 6 not for production use. Expect breaking changes as this is still in development for .NET 6.

Prerequisites

.NET MAUI Check Tool doesn't support Tizen environment yet, but hopes to be supported soon.

- Tizen SDK

- .NET 6 Preview SDK

Installing Tizen workload for .NET 6.0 (Preview)

You can install Tizen workload for .NET 6.0 by using the installer script.

  • On Linux/MacOS:
curl -sSL https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.sh | sudo bash

if you want to install a specific version of Tizen.NET workload or install to a specific directory, use the following command:

curl -sSL https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.sh | bash /dev/stdin -v <version> -d <directory>
  • On Windows:
Invoke-WebRequest 'https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.ps1' -Proxy $env:HTTP_PROXY -ProxyUseDefaultCredentials -OutFile 'workload-install.ps1';
./workload-install.ps1 [-v <version>] [-d <directory>]

For an instance:

PS D:\workspace> Invoke-WebRequest 'https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1';

PS D:\workspace> .\workload-install.ps1
Installing Samsung.NET.Sdk.Tizen.Manifest-6.0.100/6.5.100-rc.1.114 to C:\Program Files\dotnet\sdk-manifests\6.0.100...
Installing Samsung.Tizen.Sdk/6.5.100-rc.1.114...
Installing Samsung.Tizen.Ref/6.5.100-rc.1.114...
Installing Samsung.Tizen.Templates/6.5.100-rc.1.114...
Installing Samsung.NETCore.App.Runtime.tizen/6.5.100-rc.1.114... 

You can see the Tizen workload as follows if it is properly installed.

PS D:\workspace> dotnet workload list

This command lists only workloads that were installed via `dotnet workload install` in this version of the SDK and not those that were installed via Visual Studio.

Installed Workload Ids
----------------------
maui
tizen

Use `dotnet workload search` to find additional workloads to install.

Updates are avaliable for the following workload(s): maui tizen. Run `dotnet workload update` to get the latest  

Time to Go!

1. Check the Tizen templates before creating a new Tizen Project

You can see the Tizen template as follows if it is properly installed.

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

dotnet new tizen -n HelloTizenNet6

When the project is successfully created, the following files are created.

└── HelloTizenNet6
    ├── HelloTizenNet6.csproj
    ├── Main.cs
    ├── shared
    └── tizen-manifest.xml

This is a Tizen .NET app, not a .NET MAUI app. A .NET MAUI app that supports Tizen is currently under development and will be released as soon as possible.

3. Build the application

dotnet build 

When the project builds successfully, tizen app package (.tpk) is created as follows.

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.tpk

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:04.83

4. Run the application

Unfortunately dotnet run is not yet integrated. So for now you need to use sdb to install the app.

sdb install bin/Debug/net6.0-tizen/com.companyname.HelloTizenNet6-1.0.0.tpk

Tizen emulators and devices that support .NET6 have not yet been officially released, and we will announce a binary for testing soon.

About

Welcome to Tizen .NET

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 78.4%
  • PowerShell 9.1%
  • Makefile 8.0%
  • Shell 4.5%