Mkmvc.Tool 1.0.0

dotnet tool install --global Mkmvc.Tool --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Mkmvc.Tool --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Mkmvc.Tool&version=1.0.0
                    
nuke :add-package Mkmvc.Tool --version 1.0.0
                    

Mkmvc.Tool

A .NET global tool that generates a complete MVC N‑Tier architecture from a single command.
It creates a solution with Web, BLL, and DAL projects, configures EF Core for SQL Server, initializes user secrets, injects DbContext into Program.cs, and prepares the solution for development.

Features

  • Generates a solution and three projects:
    • Web (ASP.NET Core MVC)
    • BLL (Business Logic Layer)
    • DAL (Data Access Layer)
  • Adds project references: Web -> BLL -> DAL
  • Creates AppDbContext in the DAL project
  • Adds EF Core packages to the DAL project
  • Initializes user secrets in the Web project and sets a default connection string
  • Injects AddUserSecrets and AddDbContext<AppDbContext> into Program.cs
  • Removes default Class1.cs from class library projects
  • Initializes Git and creates a .gitignore
  • Builds the solution after generation

Requirements

  • .NET SDK 8 or later
  • SQL Server for the default connection string (localhost:1433)
  • Git (optional but recommended)

Usage

Basic usage:

  mkmvc <ProjectName> <DatabaseName>

Generated layout:

MvcTest.sln
MvcTest.Web/
MvcTest.BLL/
MvcTest.DAL/

Installation (local test)

dotnet tool install --global Mkmvc.Tool

Uninstall:

dotnet tool uninstall --global Mkmvc.Tool

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 278 12/15/2025

Initial release of the MVC N-Tier generator tool.