Sunday, January 22, 2023

Getting started with Minimal API - Create your project with dotnet CLI

The below blog post helps you to create a new Minimal API project using Visual Studio 2022 in a step-by-step manner.

You can use very simple dotnet CLI command to create a plain Minimal API project.


                dotnet new web

C:\Users\Murali\Documents\temp>dotnet new web -n HelloWorld

The above command creates a new Minimal API project with the name HelloWorld.

When you open the project in Visual Studio and it appears like the below.

Happy Coding !!

No comments:

Post a Comment