
Tools Required
- NET Core 1.1 SDK
For direct downloading .NET Core 1.1 tools SDK, go through the URL - https://go.microsoft.com/fwlink/?LinkID=835014

Fig 1. Installing .Net Core 1.1 SDK
After installing new .NET Core 1.1 SDK -

Fig 2. Installed .Net Core 1.1 SDK
After installing, we will create first ASP.NET web application using Command Line Interface (CLI). Before getting started, let’s have a look at basic commands for creating a web application using CLI.
Note - For demo, just start Command Prompt as an Administrator.
Commands
- dotnet
The Main command for running command line arguments. This command will return .Net Core Version and Build information.
Example
In Command Prompt, type “dotnet” and press enter.

Fig 3. Running command “dotnet”
- dotnet –help
This command will show all the information of common commands and arguments we can use.

Fig 4. Running command “dotnet --help”
- dotnet new –t web
This command will create MVC web application template.

Fig 5. Running command “dotnet new –t web”
- dotnet restore
This command will restore all dependencies.

Fig 6. Running command “dotnet restore”
- dotnet build
This command will compile the code.

Fig 7. Running command “dotnet build”
- dotnet run
This command will run the web application.

Fig 8. Running command “dotnet run”
- dotnet publish
This command is used for publishing a project.

Fig 9. Running command “dotnet publish”










Talha Bin AfzalPosted Dec 1, 2016, 9:44 AM
Thanks for the share.. I am trying to make api in core but I am unable to deploy it in IIS I am getting this error " HTTP Error 502.5 - Process Failure " can you please help me