Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created October 4, 2020 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/22c27169db346b1369fc8b095e6837d0 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/22c27169db346b1369fc8b095e6837d0 to your computer and use it in GitHub Desktop.
.NET CLI Script for Creating ASP .NET Core Web App
## Create Proejct Directory
mkdir FirstWebApp
## Make it working directory
cd FirstWebApp
## To Trust the ASP .NET Core HTTPS Development Certificate (Windows and MacOS only)
dotnet dev-certs https --trust
## Creates Empty Web App project with same name as workign directory
dotnet new web
## Open Visual Studio Code to modify the code
Code .
## After making changes to Startup.cs
## Run the web app
dotnet run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment