dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.55k stars 10.05k forks source link

Angular, React and Vue templates are missing in Net 8 CLI #52340

Open mdmoura opened 1 year ago

mdmoura commented 1 year ago

Is there an existing issue for this?

Describe the bug

When running the command dotnet new list in NET 8 the templates for Angular, React and Vue are missing.

How can the new Angular, React and Vue templates, where client app and server are separated, be added?

.NET Version

8.0.100

halter73 commented 1 year ago

This was intentional. See #49388.

https://learn.microsoft.com/en-us/aspnet/core/client-side/spa/intro?view=aspnetcore-8.0 includes details on how to run the new SPA project templates from Visual Studio. I don't think there's currently any plans to add these to dotnet new, but @danroth27 can correct me if I'm wrong.

mdmoura commented 1 year ago

@halter73 @danroth27 I am using Net CLI with Visual Studio Code in Mac. Why is this a Visual Studio only option?

  1. Is is possible to get the code generated by the (Angular/React/Vue) Standalone Templates?

  2. Even if the templates are not present in Net 8 CLI can I build and publish the code using the Net 8 CLI?

javiercn commented 1 year ago

@mdmoura thanks for contacting us.

Is it possible to get the code generated by the (Angular/React/Vue) Standalone Templates?

The code can only be generated via Visual Studio. That said, it's mostly the output from ng new and similar tools with a few additions.

@danroth27 I believe there are docs for the manual steps to take in this case, can you point them out?

Even if the templates are not present in Net 8 CLI can I build and publish the code using the Net 8 CLI?

Yes, the only thing that we don't currently support is creating the templates from the CLI.

mdmoura commented 12 months ago

The code can only be generated via Visual Studio. That said, it's mostly the output from ng new and similar tools with a few additions

@javiercn Which additions? Is there any information of what changes after using ng new?

danroth27 commented 12 months ago

@mdmoura Since the new SPA templates now ship with Visual Studio, could you please open a Visual Studio feedback ticket (Help > Send feedback >Suggest a feature) to request making the templates available as a .NET template pack?

@sayedihashimi @joj While we discuss making these templates available from the .NET CLI, could we put together a GitHub repo with the template content as samples that folks can just clone?

EdgarEldy commented 8 months ago

Hello there. Why "dotnet new angular" command was removed in dotnet 8 ?

tomavic commented 1 month ago

Hallo People, Why "dotnet new angular" command was removed in dotnet 8 ?