- ASP.NET Core 2 and Angular 5
- Valerio De Sanctis
- 115字
- 2025-04-04 17:58:00
Alternative setup using the command line
If we take a look at the article mentioned in the information box at the end of the previous paragraph, we can see how the SPA templates are fetched and installed using the command line. Although we did that using the VS2017 GUI, we can also do that using the command line in the following way:
dotnet new angular
When using this command, the Angular project will be created within the folder where the command is executed.
The command line can also come in handy whenever we want to get the latest versions of the SPA templates, which is currently not supported within the GUI:
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*