Skip to content

Calling aspire new with no arguments failsΒ #8515

@davidfowl

Description

@davidfowl

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.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions