2017-12-04 23:33:06 +08:00
---
2018-03-20 07:40:34 +08:00
title: Use the Single Page Application templates with ASP.NET Core
2017-12-04 23:33:06 +08:00
author: SteveSandersonMS
2018-02-22 00:20:31 +08:00
description: Learn how to install and get started with the ASP.NET Core Single Page Application (SPA) project templates.
2017-12-04 23:33:06 +08:00
manager: wpickett
2018-05-26 03:05:43 +08:00
monikerRange: '>= aspnetcore-2.0'
2017-12-04 23:33:06 +08:00
ms.author: scaddie
ms.custom: mvc
2018-02-22 00:20:31 +08:00
ms.date: 02/21/2018
2017-12-04 23:33:06 +08:00
ms.devlang: csharp
ms.prod: aspnet-core
ms.technology: aspnet
ms.topic: article
uid: spa/index
---
2018-03-20 07:40:34 +08:00
# Use the Single Page Application templates with ASP.NET Core
2017-12-04 23:33:06 +08:00
2018-05-26 03:05:43 +08:00
::: moniker range="= aspnetcore-2.0"
2017-12-04 23:33:06 +08:00
> [!NOTE]
2018-02-22 00:20:31 +08:00
> The released .NET Core 2.0.x SDK includes older project templates for Angular, React, and React with Redux. This documentation isn't about those older project templates. This documentation is for the latest Angular, React, and React with Redux templates, which can be installed manually into ASP.NET Core 2.0. The templates are included by default with ASP.NET Core 2.1.
2017-12-04 23:33:06 +08:00
2018-05-26 03:05:43 +08:00
::: moniker-end
2017-12-04 23:33:06 +08:00
## Prerequisites
2018-04-05 07:51:35 +08:00
* [!INCLUDE [ ](~/includes/net-core-sdk-download-link.md )]
2017-12-04 23:33:06 +08:00
* [Node.js ](https://nodejs.org ), version 6 or later
## Installation
2018-05-26 03:05:43 +08:00
::: moniker range=">= aspnetcore-2.1"
The templates are already installed with ASP.NET Core 2.1.
::: moniker-end
::: moniker range="= aspnetcore-2.0"
2018-02-22 00:20:31 +08:00
If you have ASP.NET Core 2.0, run the following command to install the updated ASP.NET Core templates for Angular, React, and React with Redux:
2017-12-04 23:33:06 +08:00
```console
2018-02-22 00:20:31 +08:00
dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
2017-12-04 23:33:06 +08:00
```
2018-05-26 03:05:43 +08:00
::: moniker-end
2017-12-04 23:33:06 +08:00
## Use the templates
2018-05-26 03:05:43 +08:00
* [Use the Angular project template ](xref:spa/angular )
* [Use the React project template ](xref:spa/react )
* [Use the React with Redux project template ](xref:spa/react-with-redux )