Skip to content

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

@CalvinAllen

Description

@CalvinAllen

Problem

Super Clean correctly handles SDK-style projects, but for legacy Web Site Projects (project type GUID {E24C65DC-7377-472B-9ABA-BC803B73C61A}) the bin folder is not a build output — it contains integral assemblies that must not be deleted. Currently Super Clean wipes bin/obj for these projects, breaking them.

Reproduction

  1. Open a solution containing a Web Site Project (File → Open → Web Site...-style project).
  2. Right-click the website node (or the solution if it contains one) and choose Super Clean.
  3. Observe that the bin directory is deleted, breaking the project until restored.

Expected behavior

Super Clean should skip Web Site Projects entirely. When invoked on the solution, all other projects clean normally; the website is left untouched.

Implementation notes

Community.VisualStudio.Toolkit exposes Project.IsKindAsync(string typeGuid) and ProjectTypes.WEBSITE (the constant for the Web Site project GUID). Use those to detect and skip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions