- Install .NET Core
- Create a new .NET Core project:
mkdir aspnetcoreapp cd aspnetcoreapp dotnet new
- Update the project.json file to add the Kestrel HTTP server package as a dependency:
getting-started/sample/aspnetcoreapp/project.json
- Restore the packages:
dotnet restore
- Add a Startup.cs file that defines the request handling logic:
getting-started/sample/aspnetcoreapp/Startup.cs
- Update the code in Program.cs to setup and start the Web host:
getting-started/sample/aspnetcoreapp/Program.cs
- Run the app (the
dotnet run
command will build the app when it's out of date):
dotnet run
- Browse to http://localhost:5000:
/tutorials/first-mvc-app/index
/tutorials/your-first-mac-aspnet
/tutorials/first-web-api
/fundamentals/index