Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.18 KB

getting-started.rst

File metadata and controls

53 lines (33 loc) · 1.18 KB

Getting Started

  1. Install .NET Core
  2. Create a new .NET Core project:
mkdir aspnetcoreapp
cd aspnetcoreapp
dotnet new
  1. Update the project.json file to add the Kestrel HTTP server package as a dependency:

getting-started/sample/aspnetcoreapp/project.json

  1. Restore the packages:
dotnet restore
  1. Add a Startup.cs file that defines the request handling logic:

getting-started/sample/aspnetcoreapp/Startup.cs

  1. Update the code in Program.cs to setup and start the Web host:

getting-started/sample/aspnetcoreapp/Program.cs

  1. Run the app (the dotnet run command will build the app when it's out of date):
dotnet run
  1. Browse to http://localhost:5000:

image

Next steps

  • /tutorials/first-mvc-app/index
  • /tutorials/your-first-mac-aspnet
  • /tutorials/first-web-api
  • /fundamentals/index