티스토리 뷰

Uno Platform

Running UWP on Linux with Uno Platform

Connor Park 2020. 8. 27. 18:36

Running UWP on Linux with Uno Platform

Youtube Channel : https://youtube.com/FutureOfDotNet

Reference

Windows Terminal

.NET Core SDK 3.1.100

Uno ProjectTemplates

WSL2(Windows Subsystem for Linux)

Install Ubuntu 20.04 LTS

Install X410

X410 setting

  • Allow Public Networks

Test WSL2 + X Window Server

  • sudo apt-get update
  • sudo apt-get install vim-gtk

Find my IP address

  • ipconfig
  • WSL -> IPv4 Address : 172.28.176.1

Export Display Setting

  • export DISPLAY=[IP Address]:0
    • ex) export DISPLAY=172.28.176.1:0

Execute gvim

Create and Publish an Uno project

  • dotnet new unoapp -o UnoLinux -w=false -wasm=false -ios=false -android=false -macos=false -sw=false
  • cd .\UnoLinux\UnoLinux.Skia.Gtk\
  • dotnet build
  • dotnet publish --runtime linux-x64 -c Release --self-contained

Running UWP on Ubuntu

  • cd /mnt/[DRIVE LETTER]/[PATH]/UnoLinux/UnoLinux.Skia.Gtk/bin/Release/netcoreapp3.1/linux-x64
    • Ex) cd /mnt/c/users/kaki1/UnoLinux/UnoLinux.Skia.Gtk/bin/Release/netcoreapp3.1/Linux-x64
  • ./UnoLinux.Skia.Gtk

UWP app running in Ubuntu

  • Uno UWP app
  • Rendering to a Skia backend
  • GTK host
  • Ubuntu
  • Windows Subsystem for Linux 2
댓글
댓글쓰기 폼
Total
594,240
Today
30
Yesterday
129
«   2021/06   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
06-16 10:28
글 보관함