Majorsilence.Forms.Templates 26.0.52

dotnet new install Majorsilence.Forms.Templates@26.0.52
                    
This package contains a .NET Template Package you can call from the shell/command line.

Majorsilence.Forms.Templates

dotnet new template for scaffolding a Majorsilence.Forms application — a WinForms-style, cross-platform UI framework for .NET that keeps Forms, controls, event handlers, and *.Designer.cs files.

dotnet new install Majorsilence.Forms.Templates
dotnet new majorsilenceforms
dotnet run --project MajorsilenceFormsApp

That scaffolds a solution with two projects — a shared UI library (MajorsilenceFormsApp.Shared, holding MainForm + MainForm.Designer.cs) and a desktop head (MajorsilenceFormsApp, a WinExe on the Avalonia backend for Windows/macOS/Linux).

dotnet new majorsilenceforms -n MyApp (optionally -o <dir>) scaffolds into a named project/namespace.

Mobile and web heads

Add head projects for the other Avalonia targets with switches — each is a thin head over the same MajorsilenceFormsApp.Shared UI:

dotnet new majorsilenceforms --IncludeAndroid --IncludeWasm --IncludeiOS
Switch Adds Needs
--IncludeAndroid MajorsilenceFormsApp.Android (net10.0-android) dotnet workload install android
--IncludeWasm MajorsilenceFormsApp.Wasm (net10.0-browser) dotnet workload install wasm-tools (for publish)
--IncludeiOS MajorsilenceFormsApp.iOS (net10.0-ios) a Mac with dotnet workload install ios

All default to off so dotnet new majorsilenceforms + dotnet build works with no extra workload. Each included head is added to the .slnx. The iOS head is experimental — the Majorsilence.Forms.Avalonia package does not yet ship a net10.0-ios asset, so it may not restore against a released package.

Options

Option Default Purpose
--msformsVersion <v> a recent release Majorsilence.Forms / Majorsilence.Forms.Avalonia package version
--avaloniaVersion <v> 12.1.1 Avalonia platform-package version the mobile/web heads reference

Maintenance

The scaffolded projects pin exact package versions (a fresh app is a standalone project outside this repo, so it needs already-published NuGet versions). Bump the defaultValue of msformsVersion (and, if Avalonia moved, avaloniaVersion) in .template.config/template.json when cutting a release, then re-verify:

dotnet pack tools/Majorsilence.Forms.Templates
# An absolute path is required: `dotnet new install` rejects a relative one (exit 106).
dotnet new install "$PWD/nupkg/Majorsilence.Forms.Templates.<version>.nupkg"
dotnet new majorsilenceforms -o /tmp/msf-smoke --IncludeAndroid --IncludeWasm
dotnet build /tmp/msf-smoke/*.slnx
dotnet new uninstall Majorsilence.Forms.Templates

CI (.github/workflows/dotnet.yml, template job) runs this on every PR.

The template package's own version tracks the repo's Directory.Build.props; that is independent of the dependency versions inside the scaffolded content, which are the template.json defaults above.

Licensed under the MIT License.

  • 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
26.0.52 70 9/12/2026
26.0.51 122 8/30/2026
26.0.50 113 8/29/2026
26.0.33 125 8/25/2026
26.0.32 129 8/19/2026
26.0.31 135 8/17/2026
26.0.30 133 8/13/2026
26.0.29 143 8/8/2026
26.0.28 140 8/7/2026