Skip to content

fix(cli): template detection in doctor/info + drop obsolete Aspire workload check#1257

Merged
iammukeshm merged 1 commit into
mainfrom
fix/cli-doctor-info
May 27, 2026
Merged

fix(cli): template detection in doctor/info + drop obsolete Aspire workload check#1257
iammukeshm merged 1 commit into
mainfrom
fix/cli-doctor-info

Conversation

@iammukeshm
Copy link
Copy Markdown
Member

Two cosmetic CLI bugs found during pre-release verification (the first thing devs see when they run fsh doctor/fsh info):

  1. "Template: not installed" false negative — detection parsed dotnet new list fsh, which has no version column, so it always returned null. Now reads dotnet new uninstall (lists the package id + Version:), with a folder-install fallback.
  2. Obsolete Aspire workload checkfsh doctor ran dotnet workload list and told users to dotnet workload install aspire, but Aspire has been a NuGet SDK (no workload) since .NET 9. Removed the check.

Before / after fsh doctor

  • Before: Aspire Workload WARN Run: dotnet workload install aspire + FSH Template WARN Not installed
  • After: (no Aspire row) + FSH Template PASS v10.0.0

Builds clean with -warnaserror; verified doctor + info against an installed template.

🤖 Generated with Claude Code

…spire check

- `fsh doctor` and `fsh info` reported "Template: not installed" even when it
  was, because detection parsed `dotnet new list` (which has no version column).
  Read `dotnet new uninstall` instead, which lists the package id + version.
- `fsh doctor` recommended `dotnet workload install aspire`, but Aspire is no
  longer a workload (NuGet SDK since .NET 9). Removed the obsolete check.

Verified: `fsh doctor` now shows FSH Template PASS v10.0.0 and no Aspire row;
`fsh info` shows the template version. Builds clean with -warnaserror.
@iammukeshm iammukeshm merged commit 9a3a053 into main May 27, 2026
11 checks passed
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

Successfully merging this pull request may close these issues.

1 participant