ModernFormsNext.Templates 1.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install ModernFormsNext.Templates@1.5.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

ModernFormsNext Templates

Templates for creating new applications with ModernFormsNext.

ModernFormsNext is a code-first C#/.NET UI framework focused on a WinForms-like developer experience, custom rendering, and simple desktop application startup.

This package installs the default project template for creating a new ModernFormsNext application.


Requirements

  • .NET SDK 10
  • Windows is currently the recommended target platform

The generated project targets:

<TargetFramework>net10.0-windows</TargetFramework>

Installation

Install the templates from NuGet.org:

dotnet new install ModernFormsNext.Templates

Check that the template is available:

dotnet new list mfn

Create a new application

Create a new ModernFormsNext application:

dotnet new mfn-app -n MyApp

Open the generated project folder:

cd MyApp

Restore packages:

dotnet restore

Build the application:

dotnet build

Run the application:

dotnet run

Template short name

The template short name is:

mfn-app

Example:

dotnet new mfn-app -n MyFirstApp

Generated project structure

The generated project contains a minimal starter application:

MyApp/
├─ MyApp.csproj
├─ Program.cs
└─ MainForm.cs

Program.cs contains the application entry point.

MainForm.cs contains the main application window.

The generated application is intentionally small. It is meant to be a clean starting point for a new ModernFormsNext app, not a full control gallery.


Package references

The generated application uses NuGet package references.

Example:

<ItemGroup>
  <PackageReference Include="ModernFormsNext" Version="1.4.0" />
</ItemGroup>

Troubleshooting

The template is not visible

Run:

dotnet new list mfn

If the template is missing, reinstall it:

dotnet new uninstall ModernFormsNext.Templates
dotnet new install ModernFormsNext.Templates

The generated project cannot restore packages

Make sure the referenced ModernFormsNext package version exists on NuGet.org.

Example:

<PackageReference Include="ModernFormsNext" Version="1.4.0" />

The generated project starts as a console application

The generated project should use:

<OutputType>WinExe</OutputType>

Repository:

https://github.com/ProGraMajster/ModernFormsNext

Main package:

ModernFormsNext

Template package:

ModernFormsNext.Templates
  • 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.12.1 101 11/26/2026
1.12.0 118 11/22/2026
1.11.1 208 9/22/2026
1.11.0 187 9/20/2026
1.10.0 251 8/16/2026
1.9.0 279 8/2/2026
1.8.0 273 7/17/2026
1.7.0 286 7/4/2026
1.6.0 310 6/27/2026
1.5.0 305 6/26/2026
1.4.0 309 6/25/2026
1.3.0 293 6/24/2026
1.2.0 305 6/22/2026
1.0.0 306 6/20/2026