dotnet / aspire-samples

MIT License
571 stars 158 forks source link

[WebToolsE2E][Aspire] Even though I have applied the feed of sdk 8.0.300, deploying AspireWithNode/AspireWithDapr still fails: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 8.0.5). #270

Closed v-sherryfan closed 2 months ago

v-sherryfan commented 2 months ago

REGRESSION INFO: Worked fine on VS 17.10 GA [34908.272.d17.10] + 1.10.0-beta.1-daily.3768065 + Aspire 8.0.0 (older machine)

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.10 GA[34910.138.d17.10] [ Includes Aspire 8.0.0 and SDK 8.0.300 ]
  3. Apply NuGet darc-pub-dotnet-aspire Feed
  4. Install sdk 8.0.300 feed
  5. Install cred helper
  6. Install Docker Desktop for Windows
  7. Install latest azd [1.10.0-beta.1-daily.3780018]
  8. Install Node.js

REPRO STEPS

  1. Clone aspire-samples repo, checkout the release/8.0 branch
  2. Open samples\AspireWithNode.sln
  3. Build
  4. Deploy using azd
    • Open the solution folder in a Command Prompt
    • Run azd init, select 'Use code in the current directory' > Confirm and continue initializing my app, type a new environment name, press enter
    • Run azd up to deploy to Azure

ACTUAL error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 8.0.5) error NU1102: - Found 158 version(s) in nuget.org [ Nearest version: 9.0.0-preview.1.24080.9 ] error NU1102: - Versions from aspire-stable were not considered image

Note

EXPECTED image

balachir commented 2 months ago

@v-sherryfan for this machine, can you confirm if you applied the 8.0.300 feed? From the error message, I believe that's required too.

cc: @v-elenafeng

balachir commented 2 months ago

Actually, I just realized that you have a note in ACTUAL saying that you did apply the 8.0.300 feed. I got confused as this feed wasn't mentioned in the INSTALL STEPS.

rajeshkamal5050 commented 2 months ago

@balachir @v-sherryfan this is not an azd issue.

@DamianEdwards @joperezr can you check for any package/NuGet feed issue?

DamianEdwards commented 2 months ago

The error message doesn't indicate that the 8.0.300 feed has been applied which is curious. I only see that nuget.org and the stable aspire feed were looked in. Can you share details of all feeds configured and how (global vs. nuget.config, etc.).

v-sherryfan commented 2 months ago

@DamianEdwards @joperezr Here are all the feeds added and the PAT token made on the machine where I reproduced the issue, please help check. image cc: @balachir

v-sherryfan commented 2 months ago

Not repro on VS 17.10 GA FB + latest daily azd [1.10.0-beta.1-daily.3787247] image

v-sherryfan commented 2 months ago

Closed it as fixed.