WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

[AspireE2E]There is a warning "AppHost file was specified in '\.aspire\settings.json' but it does not exist at '\.aspire../Aspire02.AppHost.csproj'."when running the aspire app in aspire CLI after enable showAllTemplates #13345

@jinzhao1127

Description

@jinzhao1127

REGRESSION INFO: Also repro on Aspire CLI 13.0

INSTALL STEPS

  1. Clean machine: Windows x64 25h2
  2. Install SDK 10.0.100: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-10.0.100-windows-x64-installer
  3. Install Aspire CLI - version: 13.1.0-preview.1.25604.10
    iex "& { $(irm https://aspire.dev/install.ps1) } -Quality dev"
  4. Run aspire config set features.showAllTemplates true enable all templates

REPRO STEPS

  1. Create aspire starter app with following command:
    aspire new aspire-starter -o aspire01
  2. Go to the project folder and run the app
    cd aspire01\aspire01.AppHost
    aspire run
    
  3. Press CTRL+C to stop the process
  4. aspire run the project again

Note:

  1. This issue also reproduce when running a second app at first time.
  2. The "appHostPath" will be automatically added in the settings.json under .aspire folder when run the project;
    After deleting "appHostPath" line. the warning will be disappear
    Image
  3. This issue does not reproduce when there is no settings.json file

ACTUAL
There is a warning "AppHost file was specified in 'C:\Users\v-zhajin.aspire\settings.json' but it does not exist at
'C:\Users\v-zhajin.aspire../Aspire02.AppHost.csproj'."

Image

"EXPECTED"
There is no any warning or error on the CLI window
Image

Error log:

AppHost file was specified in 'C:\Users\v-zhajin\.aspire\settings.json' but it does not exist at
'C:\Users\v-zhajin\.aspire\../Aspire02.AppHost.csproj'.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions