AvaloniaUI/avalonia-dotnet-templates là một trong những repo mã nguồn mở mà TopGit theo dõi, hiện có 665 sao, viết chủ yếu bằng C#. Avalonia Templates for `dotnet new`
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
By default dotnet CLI would create a C# template,if you want to create F# template you will need to add -lang F# to the end of the command.
Creating a new Application
To create a new barebones application called MyApp in its own subdirectory, run:
dotnet new avalonia.app -o MyApp
Parameter
Description
Options
Default
-f, --framework
The target framework for the project.
net10.0, net9.0, net8.0
net10.0
-av, --avalonia-version
The target version of Avalonia NuGet packages.
12.1.1
--no-restore
If specified, skips the automatic restore of the project on create.
Creating a new MVVM Application
MVVM is the recommended pattern for creating Avalonia applications. The MVVM application template
uses ReactiveUI to ease building applications with complex interactions.
To create a new MVVM application called MyApp in its own subdirectory, run:
dotnet new avalonia.mvvm -o MyApp
Parameter
Description
Options
Default
-f, --framework
The target framework for the project.
net10.0, net9.0, net8.0
net10.0
-av, --avalonia-version
The target version of Avalonia NuGet packages.
12.1.1
-m, --mvvm
MVVM toolkit to use in the template.
ReactiveUI, CommunityToolkit
CommunityToolkit
-rvl, --remove-view-locator
Remove the default ViewLocator. Useful for code trimming scenarios as the default ViewLocator is not trimming-friendly.
true, false
false
--no-restore
If specified, skips the automatic restore of the project on create.
Creating a new Cross-Platform application
To create a new Cross-Platform application in its own subdirectory, run:
dotnet new avalonia.xplat
This template creates an application that works on Desktop, Browser and Mobile (iOS & Android). Only available with 11.0 preview versions and newer.
Parameter
Description
Options
Default
-av, --avalonia-version
The target version of Avalonia NuGet packages.
12.1.1
-m, --mvvm
MVVM toolkit to use in the template.
ReactiveUI, CommunityToolkit
CommunityToolkit
-rvl, --remove-view-locator
Remove the default ViewLocator. Useful for code trimming scenarios as the default ViewLocator is not trimming-friendly.
true, false
false
-cpm
Use Central Package Management (CPM). If disabled, Directory.Build.props will be created with the shared Avalonia version.
true, false
true
Creating a new Window
To create a new Window called MyNewWindow, in the namespace MyApp run:
dotnet new avalonia.window -na MyApp -n MyNewWindow
Creating a new UserControl
To create a new UserControl called MyNewView, in the namespace MyApp run:
dotnet new avalonia.usercontrol -na MyApp -n MyNewView
Creating a new Styles list
To create a new Styles list called MyStyles, run:
dotnet new avalonia.styles -n MyStyles
Creating a new ResourceDictionary
To create a new ResourceDictionary called MyResources, run:
AvaloniaUI/avalonia-dotnet-templates có bao nhiêu sao?
AvaloniaUI/avalonia-dotnet-templates có 665 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/AvaloniaUI/avalonia-dotnet-templates. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
AvaloniaUI/avalonia-dotnet-templates có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho AvaloniaUI/avalonia-dotnet-templates. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
AvaloniaUI/avalonia-dotnet-templates còn đang phát triển không?
Commit gần nhất trên AvaloniaUI/avalonia-dotnet-templates là 17 ngày trước (theo timestamp GitHub). Repo có 97 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
AvaloniaUI/avalonia-dotnet-templates là gì?
AvaloniaUI/avalonia-dotnet-templates (AvaloniaUI/avalonia-dotnet-templates) là dự án C# trên GitHub. Theo mô tả gốc: Avalonia Templates for `dotnet new`
AvaloniaUI/avalonia-dotnet-templates viết bằng ngôn ngữ gì?
AvaloniaUI/avalonia-dotnet-templates chủ yếu viết bằng C#. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về avalonia-dotnet-templates?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về avalonia-dotnet-templates.