MailSlurp logo

blog

Create a new .NET MVC project starter (with the CLI)

Generate a DotNet MVC Starter Project with CLI - A Step-by-Step Guide. Learn to create a webapp and test packages with .NET Core. Get started now!

It is easy to start a new DotNET MVC project using the dotnet CLI commands.

Choose a template type

We will create a new webapp which support HTML view rendering and MVC controllers.

 dotnet new webapp -o my-project

Creating tests using the CLI

We can create test packages for xUnit, MSTest and NUnit using the command line:

 dotnet new xunit -o test --name test

.NET MVC email implementation checklist

After you scaffold your dotnet new mvc app, use this flow to productionize email: