aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Angular and ASP.NET Core Template fails on creation

Open PanzerFowst opened this issue 5 months ago • 2 comments

This should be fixed in VS 17.8.1 and working for all versions of Angular. Are you still seeing the issue after installing the latest? /cc @PranavSenthilnathan

Originally posted by @joj in #52049

Bug

This issue happens again with Angular 20.0.1.

Temporary fix

Installing Angular 19 fixes this error:

npm install -g @angular/cli@v19

PanzerFowst avatar Jun 05 '25 15:06 PanzerFowst

This issue is the result of Angular changing their naming scheme in v20. They no longer do app.component.ts or app.module.ts and instead do app.ts and app-module.ts. The template creation fails when it looks for app.component.ts when @angular/cli v20 is installed.

jerricko avatar Jun 10 '25 21:06 jerricko

I wonder if adding a dropdown for what version of Angular along with what version of .NET when making a project with this template would help?

At least, it would help people realize that Angular versions matter I feel like... (I bumped into this just trying to update / build an internal tool with no experience of Angular beforehand.)

PanzerFowst avatar Jun 12 '25 12:06 PanzerFowst

@BrennanConroy do you know anything about this one? Do we own the aspnetcore npm template?

wtgodbe avatar Aug 01 '25 17:08 wtgodbe

This is still happening with VS 17.14.12

netdragonboberb avatar Aug 17 '25 12:08 netdragonboberb

@mackinnon where are these templates? I do not see them in aspnetcore

danmoseley avatar Aug 19 '25 00:08 danmoseley

We need to find the right owner for this

danmoseley avatar Aug 25 '25 17:08 danmoseley

@joj, your team owns these templates, correct?

MackinnonBuck avatar Aug 25 '25 20:08 MackinnonBuck

Yep. I believe this issue is fixed already, but the fix has not yet been released.

joj avatar Aug 25 '25 21:08 joj

Can this issue move to the right repo (what is that? SDK?)

danmoseley avatar Aug 25 '25 21:08 danmoseley

We track internally. If you want to close this as tracked that's fine. This is the closest we have to an external link for it: https://developercommunity.visualstudio.com/t/Creating-a-new-Solution-with-Angular-is-/10918866

Edit: better feedback item with a workaround

joj avatar Aug 25 '25 22:08 joj

Thanks, @joj! Closing this out, as it's being tracked externally.

MackinnonBuck avatar Aug 26 '25 13:08 MackinnonBuck