Simple Avalonia XPlat template starter
- C# 46.5%
- HTML 42.7%
- CSS 3.9%
- PowerShell 2.8%
- Shell 2.5%
- Other 1.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| source | ||
| .gitignore | ||
| LICENSE | ||
| pack-template.ps1 | ||
| pack-template.sh | ||
| Ratcow.Avalonia.Templates.csproj | ||
| README.md | ||
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.