Install the components you need.

These SDK packages are available in Runic SDK 0.23.0. Keep SDK dependencies on the same preview version. Command Line and Translations are released independently.

What do you want to do?

Each goal lists the smallest set of packages that reaches it. Run .NET package commands from your project directory and npm commands from your frontend directory. Runic Translations and Runic Command Line have their own Translations and Command Line installation guides.

Start a new desktop app

The creator asks for a frontend, package manager, host and ViewModel library, then runs the template. The generated project references every package it needs.

  • Runic.Create Guided creator; runs without installing.
    dnx Runic.Create@0.23.0
  • Runic.Application.Templates The runic-app template, for dotnet new.
    dotnet new install Runic.Application.Templates@0.23.0

Getting started

Add Windows and Views to an existing app

Reference one host adapter in the .NET project and the shared runtime plus your framework binding in the frontend.

  • Runic.Application.Views.CsWebUi Host adapter for a browser or WebView window, or:
    dotnet add package Runic.Application.Views.CsWebUi --version 0.23.0-preview.1
  • Runic.Application.Views.Desktop Host adapter for Runic Desktop native windows, with:
    dotnet add package Runic.Application.Views.Desktop --version 0.23.0
  • Runic.Desktop.NativeServer Serves Runic Desktop pages without ASP.NET Core; Runic.Desktop.Kestrel instead for an app that uses ASP.NET Core.
    dotnet add package Runic.Desktop.NativeServer --version 0.23.0
  • Runic.Application.Views.ReactiveUI Only for ReactiveUI ViewModels.
    dotnet add package Runic.Application.Views.ReactiveUI --version 0.23.0
  • dotnet-runic dotnet runic dev and doctor.
    dotnet tool install --local dotnet-runic --version 0.23.0
  • @runic-artifex/views Runtime for the generated TypeScript clients.
    npm install --save-exact @runic-artifex/views@0.23.0
  • @runic-artifex/react Or @runic-artifex/vue, @runic-artifex/svelte, @runic-artifex/angular.
    npm install --save-exact @runic-artifex/react@0.23.0

Add Runic to an existing app

Adopt navigation in WPF

Keep native Views and existing ViewModels while adopting the shared navigation engine, WPF hosts and idiomatic MVVM commands.

  • Runic.Navigation.Wpf Native hosts and dispatcher context; includes Runic.Navigation.
    dotnet add package Runic.Navigation.Wpf --version 0.23.0
  • Runic.Navigation.ReactiveUI Only for ReactiveUI observable and command helpers; choose the .Reactive flavor for System.Reactive.
    dotnet add package Runic.Navigation.ReactiveUI --version 0.23.0

Adopt Runic incrementally in WPF

Replace one WPF View with a web View

Embed a web presentation in the existing WPF shell and retain the same application-owned model, services and navigation entry.

  • Runic.Application.Views.Wpf Child WebView2 host; includes the Desktop bridge.
    dotnet add package Runic.Application.Views.Wpf --version 0.23.0
  • @runic-artifex/views Shared browser runtime; add the binding for your frontend framework.
    npm install --save-exact @runic-artifex/views@0.23.0

Migrate individual Views

Test Windows and Views

Drive the real ViewModels and generated Bridges without a browser or native window. Frontend tests use the mock Bridge in @runic-artifex/views.

Testing in the tutorial

Open native windows and use platform services

Runic Desktop hosts embedded WebViews in native windows; the platform packages add file dialogs, notifications, appearance and inhibition.

  • Runic.Desktop Native windows and embedded WebViews.
    dotnet add package Runic.Desktop --version 0.23.0
  • Runic.Desktop.NativeServer Serves the pages of its windows without ASP.NET Core; or Runic.Desktop.Kestrel.
    dotnet add package Runic.Desktop.NativeServer --version 0.23.0
  • Runic.Platform Platform service contracts; add the Runic.Platform.* adapter for each operating system.
    dotnet add package Runic.Platform --version 0.23.0

Choose a desktop host

Embed and serve a frontend

Pack a frontend build into the executable and serve it from ASP.NET Core or a Runic Desktop window.

  • Runic.Assets Archive, manifest and build integration.
    dotnet add package Runic.Assets --version 0.23.0
  • Runic.Assets.AspNetCore Serve from ASP.NET Core, or:
    dotnet add package Runic.Assets.AspNetCore --version 0.23.0
  • Runic.Assets.Desktop Serve in a Runic Desktop window.
    dotnet add package Runic.Assets.Desktop --version 0.23.0

Embed and serve assets

All packages

No GitHub package feed or token is required. For local .NET tools, create a manifest with dotnet new tool-manifest if the project does not already have one.