ModernFormsNext.Templates
1.6.0
dotnet new install ModernFormsNext.Templates@1.6.0
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.6.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.6.0" />
The generated project starts as a console application
The generated project should use:
<OutputType>WinExe</OutputType>
Links
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.