dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.92k stars 479 forks source link

[WebToolsE2E][Aspire] Cannot use command '-f' to create an aspire project with target net10.0. #6764

Open v-reinawang opened 1 day ago

v-reinawang commented 1 day ago

INSTALL STEPS

  1. Install SDK 10.0 [10.0.100-alpha.1.24571.14]
  2. dotnet nuget add source "dotnet10"
  3. Install Aspire 9.0 template

    • Run dotnet new install Aspire.ProjectTemplates::9.0.0

REPRO STEPS

  1. Create an Aspire App by running dotnet new aspire-starter -o aspire -f net10.0

ACTUAL Cannot use command '-f' to create an aspire project with target net10.0. Error: Invalid option(s): -f net10.0 'net10.0' is not a valid value for -f. The possible values are: net8.0 - Target net8.0 net9.0 - Target net9.0 Image

EXPECTED We can use the command "-f" to create an aspire project with TargetFramework of net10.0.

v-elenafeng commented 1 day ago

Hi @joperezr, JFYI. We started testing with NET10 and the templates currently do not support the 10.0 target framework.

davidfowl commented 1 day ago

Testing with .NET 10 doesn't seem like the highest priority at this moment.

joperezr commented 1 day ago

Thanks for reporting this issue @v-elenafeng. Yeah Aspire mostly is focusing on released versions of .NET for now, so we won't support .NET 10 templates for some time. Users that do want to use net10, they should be able to manually update the TFM of projects and that should just work.

v-elenafeng commented 1 day ago

Users that do want to use net10, they should be able to manually update the TFM of projects and that should just work.

Thanks Jose. Manually updating FTM works in VS, for CLI and VSCode we've filed #6765.