-
Notifications
You must be signed in to change notification settings - Fork 744
Description
Calling aspire new with no arguments fails when it should prompt with available templates:
β aspire new
π The template installation failed with exit code 103. For more information run with --debug switch.
ξͺ 21:41:04 ξΏ D:/dev/git/aspire-appsξ ο 1.055s ξ σ°―ͺ ξ
β aspire new -d
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: D:\dev\git\aspire-apps
dbug: Aspire.Cli.DotNetCliRunner[0]
Running dotnet with args: new install Aspire.ProjectTemplates::9.3.0-preview.1.25202.4+453a180dee05f51139730d761e524708fb9af8fc --force
dbug: Aspire.Cli.DotNetCliRunner[0]
Started dotnet with PID: 81056
β π§ Getting latest templates...
dbug: Aspire.Cli.DotNetCliRunner[0]
Waiting for dotnet process to exit with PID: 81056
dbug: Aspire.Cli.DotNetCliRunner[0]
dotnet process with PID: 81056 has exited with code: 103
fail: Aspire.Cli.DotNetCliRunner[0]
Failed to install template Aspire.ProjectTemplates with version 9.3.0-preview.1.25202.4+453a180dee05f51139730d761e524708fb9af8fc. See debug logs for more details. Stderr: Aspire.ProjectTemplates::9.3.0-preview.1.25202.4+453a180dee05f51139730d761e524708fb9af8fc could not be installed, the package does not exist.
For details on the exit code, refer to https://aka.ms/templating-exit-codes#103
, Stdout: The following template packages will be installed:
Aspire.ProjectTemplates::9.3.0-preview.1.25202.4+453a180dee05f51139730d761e524708fb9af8fc
Installing the template package(s) will override the available template package(s).
The following template package(s) are already available:
Aspire.ProjectTemplates::8.2.2
Warning: Aspire.ProjectTemplates::9.3.0-preview.1.25202.4 is not found in NuGet feeds https://api.nugeπ The template installation failed with exit code 103. For more information run with --debug switch.
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
Oddly enough, running with --prerelease flag installs the latest 9.1.0 templates:
β aspire new --prerelease
π¦ Using project templates version: 9.1.0
π Project created successfully in D:\dev\git\aspire-apps.
This should work like aspire add. First ask which template to create, then ask which version.