Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Unable to create empty dotnet core web app using command prompt

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.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading