
VS2022's Angular and ASP.NET Core Template Is Stuck on Angular 19 — Here's the Workaround
If you recently updated your Angular CLI and then tried to create a new project using Visual Studio 2022's "Angular and ASP.NET Core" template, you may have hit a wall. The project creation fails, and the error points at ng — even if Angular CLI is clearly installed on your machine. After getting the error, my first instinct was to update Angular CLI to the latest. That brought it to CLI 21.2.3 at the time. Went back to Visual Studio, tried again — still the same error. Updating hadn't helped. A bit of searching later, it pointed to the template itself being the problem. What's happening The VS2022 Angular and ASP.NET Core template depends on Angular CLI 19 to scaffold the project. It has not been updated to work with Angular 20 or later. So if your machine has Angular CLI 20, 21, or newer globally installed — which is likely if you've been keeping up — the template simply can't do its job. It's not a bug in your setup. The template itself is behind. Microsoft's own documentation ackno
Continue reading on Dev.to
Opens in a new tab




