Angular 2 and .NET Core 2 Support #449

Closed
opened 2025-08-09 17:16:20 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @edwardboyle on 9/2/2017

Forgive me if this has already been asked and answered but I seem to be stuck in an information loop.

Why is Angular2 in .NET Core 2 not supported?

yo aspnetcore-spa

Using the .NET Core 2.0 SDK, you can run any of the following commands in an empty directory, without needing to install any external packages first:

    * dotnet new angular
    * dotnet new react
    * dotnet new redux
....
### This Yeoman generator is DEPRECATED

This fails:
dotnet new angular

So:
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

Templates                          Short Name      Language      Tags
-------------------------------------------------------------------------------
Console Application                console         [C#], F#      Common/Console
Class library                      classlib        [C#], F#      Common/Library
Unit Test Project                  mstest          [C#], F#      Test/MSTest
xUnit Test Project                 xunit           [C#], F#      Test/xUnit
ASP.NET Core Empty                 web             [C#]          Web/Empty
ASP.NET Core Web App               mvc             [C#], F#      Web/MVC
ASP.NET Core with Aurelia          aurelia         [C#]          Web/MVC/SPA
ASP.NET Core with Knockout.js      knockout        [C#]          Web/MVC/SPA
ASP.NET Core with Vue.js           vue             [C#]          Web/MVC/SPA
ASP.NET Core Web API               webapi          [C#]          Web/WebAPI
Solution File                      sln                           Solution

Why must I be in such pain?

*Originally created by @edwardboyle on 9/2/2017* Forgive me if this has already been asked and answered but I seem to be stuck in an information loop. Why is Angular2 in .NET Core 2 not supported? `yo aspnetcore-spa` ``` Using the .NET Core 2.0 SDK, you can run any of the following commands in an empty directory, without needing to install any external packages first: * dotnet new angular * dotnet new react * dotnet new redux .... ### This Yeoman generator is DEPRECATED ``` This fails: `dotnet new angular` So: `dotnet new --install Microsoft.AspNetCore.SpaTemplates::* ` ``` Templates Short Name Language Tags ------------------------------------------------------------------------------- Console Application console [C#], F# Common/Console Class library classlib [C#], F# Common/Library Unit Test Project mstest [C#], F# Test/MSTest xUnit Test Project xunit [C#], F# Test/xUnit ASP.NET Core Empty web [C#] Web/Empty ASP.NET Core Web App mvc [C#], F# Web/MVC ASP.NET Core with Aurelia aurelia [C#] Web/MVC/SPA ASP.NET Core with Knockout.js knockout [C#] Web/MVC/SPA ASP.NET Core with Vue.js vue [C#] Web/MVC/SPA ASP.NET Core Web API webapi [C#] Web/WebAPI Solution File sln Solution ``` Why must I be in such pain?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#449
No description provided.