Skip to content

fix(commands): skip Web Site projects when cleaning#32

Merged
CalvinAllen merged 2 commits into
mainfrom
fix/commands/skip-website-projects
May 14, 2026
Merged

fix(commands): skip Web Site projects when cleaning#32
CalvinAllen merged 2 commits into
mainfrom
fix/commands/skip-website-projects

Conversation

@CalvinAllen
Copy link
Copy Markdown
Collaborator

@CalvinAllen CalvinAllen commented May 14, 2026

Summary

  • Detect legacy Web Site Projects (project type GUID {E24C65DC-7377-472B-9ABA-BC803B73C61A}) via Project.IsKindAsync(ProjectTypes.WEBSITE) and skip them — their bin folder holds integral runtime assemblies, not build output.
  • When invoked on the solution, other projects clean as before and a single summary MessageBox lists any skipped Web Site projects.
  • When invoked directly on a Web Site project node, Super Clean no-ops on disk and shows a MessageBox naming the skipped project so the user knows why nothing happened.

Test plan

  • Open a solution containing a Web Site Project + at least one SDK project; right-click solution → Super Clean. Verify SDK project's bin/obj are cleared, the website's bin is untouched, and a summary MessageBox lists the website by name.
  • Right-click the Web Site Project node directly → Super Clean. Verify bin is untouched and a MessageBox names the skipped project.
  • Right-click an SDK project node → Super Clean. Verify it still cleans as before and no MessageBox is shown (regression check).
  • Solution with multiple Web Site projects + SDK projects → Super Clean on solution. Verify the summary MessageBox lists every skipped website.

Resolves #31

For legacy Web Site Projects (project type GUID
{E24C65DC-7377-472B-9ABA-BC803B73C61A}) the bin folder is not a build
output; it contains assemblies that are integral to the project. Detect
these via Project.IsKindAsync(ProjectTypes.WEBSITE) and skip them.
Show a single summary MessageBox after a solution-level Super Clean listing
any skipped Web Site projects, and a dedicated MessageBox when Super Clean
is invoked directly on a Web Site project so the user understands why
nothing was cleaned.
@CalvinAllen CalvinAllen merged commit 7bbd75c into main May 14, 2026
4 checks passed
@CalvinAllen CalvinAllen deleted the fix/commands/skip-website-projects branch May 14, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

fix(commands): skip Web Site projects when cleaning

1 participant