Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dotnet-uno-targets

БесплатноБез исполняемых скриптовНе проверен

Deploying Uno Platform apps. Per-target guidance for WASM, iOS, Android, macOS, Windows, Linux.

wshaddixот wshaddix★ 94 звезды на GitHub

Об этом скилле

dotnet-uno-targets

Per-target deployment guidance for Uno Platform applications: Web/WASM, iOS, Android, macOS (Catalyst), Windows, Linux (Skia/GTK), and Embedded (Skia/Framebuffer). Each target section covers project setup, debugging workflow, packaging/distribution, platform-specific gotchas, AOT/trimming implications, and behavior differences from other targets.

Scope boundary: This skill owns per-target deployment, debugging, packaging, and platform-specific gotchas. Core Uno Platform development (Extensions, MVUX, Toolkit, themes) is owned by [skill:dotnet-uno-platform]. MCP integration for live docs is owned by [skill:dotnet-uno-mcp].

Out of scope: Uno Platform testing (Playwright for WASM, platform Appium tests) -- see [skill:dotnet-uno-testing]. General AOT/trimming patterns -- see [skill:dotnet-aot-wasm]. UI framework selection -- see [skill:dotnet-ui-chooser].

Cross-references: [skill:dotnet-uno-platform] for core development, [skill:dotnet-uno-mcp] for MCP integration, [skill:dotnet-uno-testing] for testing, [skill:dotnet-aot-wasm] for general WASM AOT patterns, [skill:dotnet-ui-chooser] for framework selection.


Target Platform Overview

Target TFM Tooling Packaging Key Constraints
Web/WASM net8.0-browserwasm Browser DevTools Static hosting / Azure SWA No filesystem access, AOT recommended, limited threading
iOS net8.0-ios Xcode / VS Code / Rider App Store / TestFlight Provisioning profiles, entitlements, no JIT
Android net8.0-android Android SDK / Emulator Play Store / APK sideload SDK version targeting, permissions
macOS (Catalyst) net8.0-maccatalyst Xcode Mac App Store / notarization Sandbox restrictions, entitlements
Windows net8.0-windows10.0.19041 Visual Studio MSIX / Windows Store WinAppSDK version alignment
Linux net8.0-desktop Skia/GTK host AppImage / Flatpak / Snap GTK dependencies, Skia rendering
Embedded net8.0-desktop Skia/Framebuffer Direct deployment No windowing system, headless rendering

TFM note: Use version-agnostic globs (net*-ios, net*-android) when detecting platform targets programmatically to avoid false negatives on older or newer TFMs.


Web/WASM

Project Setup

# Run the WASM target
dotnet run -f net8.0-browserwasm --project MyApp/MyApp.csproj

The WASM target renders XAML controls in the browser. The renderer depends on project configuration: Skia (canvas/WebGL) or native HTML mapping. The app loads via a JavaScript bootstrap (uno-bootstrap.js) that initializes the .NET WASM runtime.

Debugging

  • Browser DevTools: Use F12 in Chrome/Edge to inspect DOM, network, console output
  • .NET debugging: Visual Studio and VS Code support debugging the .NET WASM runtime via browser CDP
  • Uno DevServer: dotnet run starts a development server with live reload support
  • Console logging: ILogger output appears in the browser console

Packaging/Distribution

# Publish for production
dotnet publish -f net8.0-browserwasm -c Release --output ./publish

# Output is a static site (HTML/JS/WASM)
# Deploy to: Azure Static Web Apps, GitHub Pages, Netlify, any static host

Published output is a self-contained static site. No server-side runtime required.

Platform Gotchas

  • No filesystem access: Use browser storage APIs (IndexedDB, localStorage) via JS interop or Uno.Storage
  • Threading limitations: Web Workers provide limited multi-threading; Task.Run may not parallelize on WASM
  • CORS restrictions: HTTP requests from WASM are subject to browser CORS policy
  • Initial load time: The .NET WASM runtime and assemblies must download before the app is usable. Use assembly trimming to reduce download size. AOT improves runtime execution speed but increases artifact size
  • Deep linking: Configure URL routing in the Uno Navigation Extensions for browser URL bar navigation

AOT/Trimming

Trimming reduces download size by removing unused code. AOT pre-compiles IL to WebAssembly, improving runtime execution speed but increasing artifact size. Use both together and measure the tradeoffs for your app.

<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0-browserwasm'">
  <WasmShellMonoRuntimeExecutionMode>InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode>
  <RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup>

Trimming is critical for WASM. Untrimmed apps can exceed 30MB. With trimming, typical apps are 5-15MB. AOT adds to the artifact size but eliminates interpreter overhead at runtime -- profile both download time and execution speed in target conditions.

For Uno-specific AOT gotchas (linker descriptors, Uno source generators), see the AOT section. For general WASM AOT patterns, see [skill:dotnet-aot-wasm].

Behavior Differences

  • Navigation: URL-based deep linking wo
Полный SKILL.md на GitHub

Установить dotnet-uno-targets в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dotnet-uno-targets?

Deploying Uno Platform apps. Per-target guidance for WASM, iOS, Android, macOS, Windows, Linux.

Как установить скилл dotnet-uno-targets?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dotnet-uno-targets запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dotnet-uno-targets с