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
블로그 이미지

kaki104

This blog covers the latest technologies in Microsoft .Net. In 2020, I will be talking about Uno Platform frequently. http://youtube.com/FutureOfDotNet https://twitter.com/kaki104

댓글을 달아 주세요