ModernFormsNext.Templates 1.12.1

dotnet new install ModernFormsNext.Templates@1.12.1
                    
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::1.12.1

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
|-- MainForm.Designer.cs
`-- MainForm.mfdesign

Program.cs contains the application entry point.

MainForm.cs contains the user-authored main application window.

MainForm.Designer.cs is generated by the ModernFormsNext designer.

MainForm.mfdesign is the companion designer document. The Visual Studio extension opens it through View ModernFormsNext Designer from MainForm.cs.

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.

The project file marks MainForm.cs with ModernFormsNextDesigner=true and does not use the classic Windows Forms SubType=Form marker.


Package references

The generated application uses NuGet package references.

Example:

<ItemGroup>
  <PackageReference Include="ModernFormsNext" Version="1.12.1" />
</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::1.12.1

The generated project cannot restore packages

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

Example:

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

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 56 11/26/2026
1.12.0 102 11/22/2026
1.11.1 197 9/22/2026
1.11.0 176 9/20/2026
1.10.0 242 8/16/2026
1.9.0 270 8/2/2026
1.8.0 264 7/17/2026
1.7.0 277 7/4/2026
1.6.0 301 6/27/2026
1.5.0 295 6/26/2026
1.4.0 299 6/25/2026
1.3.0 284 6/24/2026
1.2.0 296 6/22/2026
1.0.0 296 6/20/2026