Closed mlorbetske closed 6 years ago
When is this issue going to be fixed? Is there currently a work around? Seems like this would have been fixed relatively fast (faster than the current issue being 20 days old) considering the popularity and prevalence of Angular.
@Blackbaud-DustinLunsford I haven't tried this workaround myself, but what if you ran the following command?
dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
This is how the Angular and React project templates were installed prior to inclusion in the SDK installation.
Thanks for contacting us, @vasyliv. @mlorbetske, any ideas what could have caused this?
It looks like the original SPA template pack is installed as well here, I’ll try to repro. Cc @SteveSandersonMS
Could you post the output of “dotnet new -u” as well please?
Here's what I'm seeing with the 2.1.302 CLI out of the box
E:\temp>dotnet new -l
Usage: new [options]
Options:
-h, --help Displays help for this command.
-l, --list Lists templates containing the specified name. If no name is specified, lists all templates.
-n, --name The name for the output being created. If no name is specified, the name of the current directory is used.
-o, --output Location to place the generated output.
-i, --install Installs a source or a template pack.
-u, --uninstall Uninstalls a source or a template pack.
--nuget-source Specifies a NuGet source to use during install.
--type Filters templates based on available types. Predefined values are "project", "item" or "other".
--force Forces content to be generated even if it would change existing files.
-lang, --language Filters templates based on language and specifies the language of the template to create.
Templates Short Name Language Tags
----------------------------------------------------------------------------------------------------------------------------
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
Unit Test Project mstest [C#], F#, VB Test/MSTest
xUnit Test Project xunit [C#], F#, VB Test/xUnit
Razor Page page [C#] Web/ASP.NET
MVC ViewImports viewimports [C#] Web/ASP.NET
MVC ViewStart viewstart [C#] Web/ASP.NET
ASP.NET Core Empty web [C#], F# Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App razor [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
Razor Class Library razorclasslib [C#] Web/Razor/Library/Razor Class Library
ASP.NET Core Web API webapi [C#], F# Web/WebAPI
global.json file globaljson Config
NuGet Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
E:\temp>dotnet new -u
Template Instantiation Commands for .NET Core CLI
Currently installed items:
Microsoft.DotNet.Common.ItemTemplates
Microsoft.DotNet.Common.ProjectTemplates.2.1
Microsoft.DotNet.Test.ProjectTemplates.2.1
Microsoft.DotNet.Web.ItemTemplates
Microsoft.DotNet.Web.ProjectTemplates.2.1
Microsoft.DotNet.Web.Spa.ProjectTemplates
It looks like the SPA templates pack is somehow missing, I'd run dotnet new -i Microsoft.DotNet.Web.Spa.ProjectTemplates
to bring them back or dotent new --debug:reinit
to reset to the default template set.
I expect that dotnet new --debug:reinit
is the right way forwards, because the list in the original post contains the aurelia
/knockout
/vue
templates that are no longer maintained.
Thanks for contacting us. We believe that the question you've raised have been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments.
From @livarcocc on June 28, 2018 16:25
From @vasyliv on June 28, 2018 15:46
Steps to reproduce
https://www.microsoft.com/net/download/windows Download .NET Core 2.1 SDK Download .NET Core 2.1 Runtime dotnet new angular
Expected behavior
new template
Actual behavior
Environment data
dotnet --info
output:Copied from original issue: dotnet/cli#9573
Copied from original issue: dotnet/templating#1596