I’m trying to create new empty web dotnet core web application using command prompt but i’m not sure how.
I’m using dotnet8 SDK to create new empty web app.
i tried by giving command as dotnet new WebApp.
Which created new MVC web app.
>Solution :
If you’re trying to create new dotnet empty web app using command prompt, you can try by typing command to get list of available templates.
dotnet new -l
This will display all templates to use.
To sepecificaly create new empty dotnet web app use:
dotnet new web -n SampleEmptyWebApp
Note: -l: list and -n: name for the application.