Skip to content

[WebToolsE2E][Aspire] When using the 'aspire add redis' command and run the project, there was no cache project in the Aspire Dashboard. #8337

@Coleen17

Description

@Coleen17

INSTALL STEPS

1.Clean machine: Win11 x64 ENU
2.Install SDK 9.0.202
3. Add dotnet9 feed for 9.2.0-preview.1
4. Install the latest Aspire 9.2.0-preview.1 templates
dotnet new install Aspire.ProjectTemplates::9.2.0-preview.1.25176.8 --force
5. Install aspire.cli tool.
dotnet tool install --global aspire.cli --prerelease --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json

NOTE

  1. This issue doesn't reproduce when using this command dotnet new aspire-starter --use-redis-cache -o Aspire1 the cache in the Aspire Dashboard displayed successfully.

REPRO STEPS

  1. Open CMD, create a folder using following commands:
mkdir aspireapp1
cd aspireapp1
aspire new
cd aspireapp1.apphost
aspire add
  1. Select add redis from the choices or can add redis directly.
    aspire add redis

  2. Run the project.
    aspire run/dotnet run

  3. Check the cache project in the Aspire Dashboard.

ACTUAL
There is no cache in the Aspire dashboard that indicates redis package has been included.
Image

EXPECTED
The redis package should be included.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-clineeds-retriageStale, old issues that may be closable or actionable

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions