Simple Avalonia XPlat template starter
  • C# 46.5%
  • HTML 42.7%
  • CSS 3.9%
  • PowerShell 2.8%
  • Shell 2.5%
  • Other 1.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-19 16:49:44 +01:00
source converted in to a dotnet new template 2026-09-19 16:49:44 +01:00
.gitignore converted in to a dotnet new template 2026-09-19 16:49:44 +01:00
LICENSE Initial commit 2026-09-19 15:31:30 +00:00
pack-template.ps1 converted in to a dotnet new template 2026-09-19 16:49:44 +01:00
pack-template.sh converted in to a dotnet new template 2026-09-19 16:49:44 +01:00
Ratcow.Avalonia.Templates.csproj converted in to a dotnet new template 2026-09-19 16:49:44 +01:00
README.md converted in to a dotnet new template 2026-09-19 16:49:44 +01:00

ratcow-avalonia-template

Simple Avalonia cross-platform template starter.

Package for NuGet

Create a NuGet package for distribution:

./pack-template.sh 1.0.0

On Windows, run:

.\pack-template.ps1 1.0.0

Both commands write Ratcow.Avalonia.Templates.<version>.nupkg to artifacts/. Upload that package to a NuGet server, then consumers can install it with:

dotnet new install Ratcow.Avalonia.Templates

Install and use

Install the template from a local clone:

dotnet new install ./source

Create an application with a chosen project and namespace name:

dotnet new ratcow-avalonia --name MyApplication

The generated solution contains MyApplication, MyApplication.Desktop, MyApplication.Browser, MyApplication.Android, and MyApplication.iOS projects. References and Template namespaces are renamed to MyApplication automatically.