1.6 KiB
1.6 KiB
title | author | description | keywords | ms.author | manager | ms.date | ms.topic | ms.assetid | ms.technology | ms.prod | uid |
---|---|---|---|---|---|---|---|---|---|---|---|
Getting Started with ASP.NET Core | Microsoft Docs | rick-anderson | ASP.NET Core, | riande | wpickett | 10/14/2016 | get-started-article | 73543e9d-d9d5-47d6-9664-17a9beea6cd3 | aspnet | asp.net-core | getting-started |
Getting Started with ASP.NET Core
-
Install .NET Core
-
Create a new .NET Core project:
mkdir aspnetcoreapp cd aspnetcoreapp dotnet new web
Notes:
- On macOS and Linux, open a terminal window. On Windows, open a command prompt.
- Previous versions of .NET Core required a
t
parameter, that isdotnet new -t web
. If you get an error runningdotnet new web
, install the latest .NET Core.dotnet
(with no parameters) will display the .NET Core version.
-
Restore the packages:
dotnet restore
-
Run the app (the
dotnet run
command will build the app when it's out of date):dotnet run
-
Browse to
http://localhost:5000
Next steps
For more getting-started tutorials, see ASP.NET Core Tutorials
For an introduction to ASP.NET Core concepts and architecture, see ASP.NET Core Introduction and ASP.NET Core Fundamentals.
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.