Skip to main content
Any Framework

Templates for Uno platforms.

Published
Oct 2, 2023
3y ago
Total Downloads
29.7K
29,658

Deprecated Package Version

Reason: Legacy

Install

dotnet add package H.Uno.Templates --version 0.9.3

No framework information available.

README

Uno.Sdk

Nuget package dotnet License: MIT Discord

Easy configuration for Uno projects in 2 lines of code. Now is only there platforms are supported:

  • Mobile(macOS, MacCatalyst and Android)
  • Windows
  • WebAssembly
  • Skia.Gkt(Skia.Wpf, Skia.Linux.Framebuffer and Skia.Tizen still are unsupported)

I think we need to replace net7.0-skia to net7.0-windows(Skia.Wpf), net7.0-gtk(Skia.Gtk), net7.0-linux(Skia.Linux.Framebuffer) and net7.0-tizen(Skia.Tizen) to support all Skia project types.

Usage

<Project Sdk="H.Uno.Sdk/0.9.3">

    <PropertyGroup>
        <TargetFrameworks>net7.0-maccatalyst;net7.0-android;net7.0-ios;net7.0-skia;net7.0-webassembly</TargetFrameworks>
        <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
    </PropertyGroup>

</Project>

Install

To support custom target frameworks, you need to install the appropriate workloads:

  • On Linux / macOS:
curl -sSL https://raw.githubusercontent.com/HavenDV/Skia/main/scripts/workload-install.sh | sudo bash
curl -sSL https://raw.githubusercontent.com/HavenDV/WebAssembly/main/scripts/workload-install.sh | sudo bash
  • On Windows:
Invoke-WebRequest 'https://raw.githubusercontent.com/HavenDV/Skia/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1';
./workload-install.ps1
Invoke-WebRequest 'https://raw.githubusercontent.com/HavenDV/WebAssembly/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1';
./workload-install.ps1

Uninstall

dotnet workload uninstall skia
dotnet workload uninstall webassembly

Support

Priority place for bugs: https://github.com/HavenDV/Uno.Sdk/issues
Priority place for ideas and general questions: https://github.com/HavenDV/Uno.Sdk/discussions
Discord: https://discord.gg/g8u2t9dKgE

Changes from Previous Version

No structural changes between v0.9.2 and v0.9.3.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.