AspNetCore.Docs/aspnetcore/getting-started.md

49 lines
1.3 KiB
Markdown
Raw Normal View History

2016-10-29 01:35:15 +08:00
---
title: Getting Started with ASP.NET Core | Microsoft Docs
2016-10-29 01:35:15 +08:00
author: rick-anderson
2016-11-18 04:13:02 +08:00
description:
keywords: ASP.NET Core,
2016-10-29 01:35:15 +08:00
ms.author: riande
manager: wpickett
ms.date: 10/14/2016
ms.topic: article
ms.assetid: 73543e9d-d9d5-47d6-9664-17a9beea6cd3
2016-11-17 08:24:57 +08:00
ms.technology: aspnet
2016-10-29 01:35:15 +08:00
ms.prod: aspnet-core
uid: getting-started
---
# Getting Started with ASP.NET Core
2016-10-29 01:35:15 +08:00
1. Install [.NET Core](https://microsoft.com/net/core)
2. Create a new .NET Core project:
2016-11-18 13:03:07 +08:00
```console
2016-10-29 01:35:15 +08:00
mkdir aspnetcoreapp
cd aspnetcoreapp
dotnet new web
2016-11-18 13:03:07 +08:00
```
   Note: This command requires `.NET Core SDK 1.0.0 - RC4` or later.
2016-10-29 01:35:15 +08:00
3. Restore the packages:
2016-10-29 01:35:15 +08:00
2016-11-18 13:03:07 +08:00
```console
2016-10-29 01:35:15 +08:00
dotnet restore
2016-11-18 13:03:07 +08:00
```
2016-10-29 01:35:15 +08:00
4. Run the app (the `dotnet run` command will build the app when it's out of date):
2016-10-29 01:35:15 +08:00
2016-11-18 13:03:07 +08:00
```console
2016-10-29 01:35:15 +08:00
dotnet run
2016-11-18 13:03:07 +08:00
```
2016-10-29 01:35:15 +08:00
2016-11-15 10:58:47 +08:00
5. Browse to `http://localhost:5000`
2016-10-29 01:35:15 +08:00
## Next steps
For more getting-started tutorials, see [ASP.NET Core Tutorials](tutorials/index.md)
For an introduction to ASP.NET Core concepts and architecture, see [ASP.NET Core Introduction](index.md) and [ASP.NET Core Fundamentals](fundamentals/index.md).
An ASP.NET Core app can use the .NET Core or .NET Framework runtime. For more information, see [Choosing between .NET Core and .NET Framework](https://docs.microsoft.com/dotnet/articles/standard/choosing-core-framework-server).