2026-05-22 09:52:25 +08:00

Avalonia Stack

This repository can be used as a dotnet new project template. The template replaces the Avalonia prefix in solution files, project files, folder names, project references, C# namespaces, packaging scripts, and frontend names when a new project is created.

Use a C# namespace friendly project name such as DemoApp or QiChengApp. Avoid names with -, spaces, or a leading digit because the generated name is also used inside C# namespaces.

Generate from a local clone

dotnet new install .
dotnet new Qiang-avalonia-stack -n DemoApp -o ..\DemoApp

The generated solution entry point is DemoApp-Stack.slnx. Project folders, project files, and generated C# namespaces keep the project name casing from -n.

Build an installable template package

dotnet pack .\Avalonia.Stack.TemplatePack.csproj -c Release
dotnet new install .\bin\Release\QiCheng.Avalonia.Stack.Templates.1.0.0.nupkg
dotnet new Qiang-avalonia-stack -n DemoApp -o .\DemoApp

Publish the generated .nupkg to a private or public NuGet feed when you want to create named projects without cloning this template repository first.

Description
一个网页和Avalonia桌面端通用的框架实现 通用的界面 web端,Avalonia桌面端(支持跨平台,Windows,Linux,Mac) 通用的后端,封装不同的API和Avalonia服务
Readme 514 KiB
Languages
C# 80.3%
PowerShell 6.4%
JavaScript 3.8%
Vue 3.7%
CSS 2.4%
Other 3.4%