NetVerticalSlice.Wpf.Templates
1.0.0
dotnet new install NetVerticalSlice.Wpf.Templates@1.0.0
NetVerticalSlice.Wpf.Templates
dotnet new templates for WPF desktop applications built on Vertical Slice Architecture.
The desktop companion of NetVerticalSlice.Templates
(Wolverine VSA Web API). Both share the same Response<T> / Error / PagedList<T> envelope and
the same slice layout, so a client generated with --DataSource RemoteApi consumes an API
generated by vsa-webapi with no glue code.
| Template | Short name | Type |
|---|---|---|
| WPF Vertical Slice Desktop App | vsa-wpf |
project |
| WPF VSA Feature | vsa-wpf-feature |
item |
Install
dotnet new install NetVerticalSlice.Wpf.Templates
Use
dotnet new vsa-wpf -n Acme.Desktop
dotnet new vsa-wpf -n Acme.Client -D RemoteApi -A RemoteJwt
Then, from inside the generated project:
dotnet new vsa-wpf-feature -n Product --RootNamespace Acme.Desktop --Category Catalog --GenerateEntity
Options
| Option | Values | Default |
|---|---|---|
-D, --DataSource |
Local, RemoteApi |
Local |
-Db, --DbProvider |
Sqlite, SqlServer, PostgreSQL |
Sqlite |
-A, --AuthProvider |
None, Local, RemoteJwt |
None |
-L, --Localization |
Enabled, None |
Enabled |
-T, --Theme |
System, Light, Dark |
System |
-I, --IncludeTests |
true, false |
true |
What is included
- MVVM — CommunityToolkit.Mvvm source generators
- UI — WPF-UI (Fluent / Windows 11), light and dark, NavigationView shell, snackbars, dialogs
- CQRS — in-process dispatcher with a DI scope per dispatch, plus validation, exception and logging pipeline behaviours
- Validation — FluentValidation, with failures bound straight onto the form fields
- Data — EF Core with soft delete, audit columns and paging, or Refit with retries and timeouts
- Auth — optional sign-in window; local hashed passwords, or JWT with a DPAPI-protected refresh token
- Localization — English and Arabic, switched at runtime, with automatic right-to-left layout
- Hosting — Generic Host,
IOptions<T>, Serilog to%LOCALAPPDATA%, single-instance guard - Tests — xUnit covering handlers and ViewModels
Requires the .NET 10 SDK and Windows.
Source, docs and conventions: https://github.com/SaadAlsaree/net-vertical-slice-wpf
MIT licensed.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 184 | 8/4/2026 |
v1.0.0 introduces the WPF Vertical Slice desktop app template and the matching feature scaffolding template for .NET 10.