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

[BUG] VS Code selecting wrong Aspire template version by default #1643

Open
claudiaregio opened this issue Nov 27, 2024 · 1 comment
Open
Labels
area-templates Experiences around the project/item templates bug Something isn't working

Comments

@claudiaregio
Copy link

claudiaregio commented Nov 27, 2024

Describe the Issue

I do not have the .NET 9 SDK, but updating to the latest versions of the Aspire templates leads to VS Code picking the .NET 9 versions by default. Leads me to having "Failed to restore NuGet packages for the solution" error and putting me in a bad state.

Image
Image

Steps To Reproduce

  1. Have only .NET 8 installed
  2. Run dotnet new install Aspire.ProjectTemplates
  3. Create new project in VS Code-> .NET Aspire Starter App -> Click "Show all template options"
  4. Default that is selected is .NET 9 SDK but I don't have the .NET 9 SDK.

Expected Behavior

For the default to be the latest version based on the SDKs I actually have installed

OR

For C# Dev Kit to warn me and offer to help me install the .NET 9 (or whatever corresponding SDK is in the future)

Environment Information

Apple M2 Pro
Sonoma 14.2.1
VS Code Version: 1.95.3
C# Dev Kit: v.1.13.9

@claudiaregio claudiaregio added the bug Something isn't working label Nov 27, 2024
@timheuer
Copy link
Member

Thanks...I think we knew this might be a situation with the new template aspect. @DamianEdwards wasn't this one of the scenarios we knew might happen without the proper TFM check on the template engine?

@timheuer timheuer added the area-templates Experiences around the project/item templates label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-templates Experiences around the project/item templates bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants