dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.64k stars 412 forks source link

[WebToolsE2E] With Aspire 8.0 P3 installed, if we then install .NET SDK 9.0 P1, we cannot create Aspire app using Aspire 8.0 P3 templates anymore #1951

Closed balachir closed 3 days ago

balachir commented 7 months ago

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install .NET SDK 8.0.200
    • Install using pipeline builds
    • Apply feed for 8.0.200
  3. Install Aspire 8.0 P3

image

image

REPRO STEPS

  1. Using CLI, create new 8.0 P3 Aspire app 'AspireStarterApp2', and build and run

    • Open Command prompt
    • dotnet new aspire-starter -o AspireStarterApp1
  2. Install .NET SDK 9.0 Preview 1

    • Install using daily 9.0 P1 builds
    • Apply feed for 9.0 P1

image

  1. Using CLI, create new 8.0 P3 Aspire app 'AspireStarterApp3'

ACTUAL Unable to create Aspire Starter Application. The aspire workload is not installed image

image

Workaround

EXPECTED Aspire workload should be installed and we can create Aspire Starter Application

dsplaisted commented 7 months ago

This looks like the same thing as https://github.com/dotnet/aspire/issues/2172

balachir commented 7 months ago

I've updated the Repro Steps with the recommended workaround.

DamianEdwards commented 6 months ago

@joperezr over a month since this was last updated. Is there any action for us on this one?

joperezr commented 6 months ago

No real action from us. There are two workarounds that can be used now:

DamianEdwards commented 6 months ago

What's the proper fix though? What's the plan to enable creating Aspire 8.0 projects once .NET 9 SDK is installed, especially in VS?

phenning commented 6 months ago

This is actionable. The proper fix is to fix the aspire manifests like described on other threads like the Maui workloads does. The global.json and env var workarounds are not customer friendly and should not be the proposed solution. After this is done, VS will display both net 8 and net 9 versions of the templates.

DamianEdwards commented 6 months ago

Thanks @phenning. @joperezr are you the right assignee for this then? We should get this fixed as part of 9.0 preview.4 I guess?

joperezr commented 6 months ago

I see, thanks for the clarification @phenning. Yes, the work to allow targeting .NET 8 with 9.0 workloads is planned for 9.0 Preview 4.

radical commented 4 months ago

This issue is linked from https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/setup-tooling?tabs=visual-studio%2Cunix . It should be updated with the plan for work to allow targeting .NET 8 with 9.0 workloads. cc @joperezr

davidfowl commented 3 days ago

No longer relevant.