Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
v-reinawang opened this issue Nov 22, 2024 · 4 comments

Comments

@v-reinawang
Copy link

v-reinawang commented Nov 22, 2024

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
Copy link

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

@davidfowl
Copy link
Member

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

@joperezr
Copy link
Member

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants