Skip to content

Instantly share code, notes, and snippets.

@subhendu-de
Created December 9, 2018 13:44
Show Gist options
  • Save subhendu-de/70012b330cd1b7df1a24f4dc8ed02c5f to your computer and use it in GitHub Desktop.
Save subhendu-de/70012b330cd1b7df1a24f4dc8ed02c5f to your computer and use it in GitHub Desktop.
mkdir eKart
cd eKart
REM creates an empty solution
dotnet new sln --name eKart
REM creates a folder for .NET Core 2.1
mkdir netcore21
cd netcore21
mkdir src
cd src
REM creates an ASP.NET Core web api project
dotnet new webapi --name eKart.Api
REM coming out of src
cd..
REM coming out of netcore21
cd..
REM adds both the projects to the solution
dotnet sln add .\netcore21\src\eKart.Api\eKart.Api.csproj
dotnet restore .\netcore21\src\eKart.Api\eKart.Api.csproj
dotnet build .\netcore21\src\eKart.Api\eKart.Api.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment