Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 60 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,75 @@
# Super Clean
<div align="center">

A Visual Studio extension that adds a 'Super Clean' option to the right click menu of the Solution and Project nodes of the Solution Explorer, to clear out the bin and obj folders for all, or selected, projects in the solution.
<img src="https://raw.githubusercontent.com/CodingWithCalvin/VS-SuperClean/main/resources/logo.png" alt="Super Clean Logo" width="256"/>

## License
---

[![License - MIT](https://img.shields.io/github/license/codingwithcalvin/vs-superclean?style=for-the-badge)](https://img.shields.io/github/license/codingwithcalvin/vs-superclean?style=for-the-badge)
[![License](https://img.shields.io/github/license/CodingWithCalvin/VS-SuperClean?style=for-the-badge)](https://github.com/CodingWithCalvin/VS-SuperClean/blob/main/LICENSE)
[![Build](https://img.shields.io/github/actions/workflow/status/CodingWithCalvin/VS-SuperClean/build.yml?style=for-the-badge)](https://github.com/CodingWithCalvin/VS-SuperClean/actions/workflows/build.yml)

## Build Status
[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/CodingWithCalvin.VS-SuperClean?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-SuperClean)
[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/CodingWithCalvin.VS-SuperClean?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-SuperClean)
[![Visual Studio Marketplace](https://img.shields.io/badge/VS%20Marketplace-Install-blue?style=for-the-badge&logo=visualstudio)](https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-SuperClean)
[![Visual Studio Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/CodingWithCalvin.VS-SuperClean?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-SuperClean)

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/CodingWithCalvin/vs-superclean/release_build_and_deploy.yml?style=for-the-badge)
🧹 **Clean your solution the way it should have always worked!**

## Marketplace Status
Tired of lingering build artifacts causing mysterious issues? **Super Clean** nukes those `bin` and `obj` folders with a single click — no more hunting through folders manually! ✨

[![Marketplace Installations](https://img.shields.io/visual-studio-marketplace/i/codingwithcalvin.vs-superclean?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/i/codingwithcalvin.vs-superclean?style=for-the-badge) [![Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/codingwithcalvin.vs-superclean?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/d/codingwithcalvin.vs-superclean?style=for-the-badge)
[![Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/codingwithcalvin.vs-superclean?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/v/codingwithcalvin.vs-superclean?style=for-the-badge) [![Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/codingwithcalvin.vs-superclean?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/r/codingwithcalvin.vs-superclean?style=for-the-badge)
</div>

## Contribute
## ✨ Features

Contributions are welcome! Issues, PRs, etc. While it may seem this extension is "done", who knows what the future may hold for it?
| Feature | Description |
|---------|-------------|
| 🗂️ **Solution-level cleaning** | Right-click the solution to clean all projects at once |
| 📁 **Project-level cleaning** | Right-click individual projects to clean just that project |
| 🗑️ **Removes bin folder** | Deletes the entire `bin` directory and all its contents |
| 📦 **Removes obj folder** | Deletes the entire `obj` directory and all its contents |
| ⚡ **Fast and reliable** | Quick deletion without the overhead of MSBuild's Clean target |

## 📥 Installation

### Visual Studio Marketplace (Recommended)

[![Install from VS Marketplace](https://img.shields.io/badge/Install%20from-VS%20Marketplace-purple?style=for-the-badge&logo=visualstudio)](https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-SuperClean)

### Manual Installation

1. 📥 Download the `.vsix` file from the [Releases](https://github.com/CodingWithCalvin/VS-SuperClean/releases) page
2. 🖱️ Double-click the downloaded file to install

## 🎮 Usage

1. 🖱️ Right-click on a **Solution** or **Project** in Solution Explorer
2. 📋 Select **Super Clean**
3. 🧹 Watch those `bin` and `obj` folders disappear!

## 💻 Supported Versions

| Visual Studio | Architectures |
|---------------|---------------|
| 🟢 Visual Studio 2022 (17.x) | x64 (amd64), ARM64 |
| 🟢 Visual Studio 2026 (18.x) | x64 (amd64), ARM64 |

## 📄 License

This project is licensed under the [MIT License](LICENSE).

## 🤝 Contributing

Contributions are welcome! Issues, PRs, feature requests — bring it on! 💪

For cloning and building this project yourself, make sure to install the [Extensibility Essentials 2022 extension](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022) for Visual Studio which enables some features used by this project.

## Contributors
## 👥 Contributors

<!-- readme: contributors -start -->
[![CalvinAllen](https://avatars.githubusercontent.com/u/41448698?v=4&s=64)](https://github.com/CalvinAllen)
[![CalvinAllen](https://avatars.githubusercontent.com/u/41448698?v=4&s=64)](https://github.com/CalvinAllen)
<!-- readme: contributors -end -->

---

<p align="center">
Made with ❤️ by <a href="https://github.com/CodingWithCalvin">Coding With Calvin</a>
</p>
6 changes: 0 additions & 6 deletions src/CodingWithCalvin.SuperClean.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
<Configuration Name="Release" />
<Platform Name="AnyCPU" />
</Configurations>
<Folder Name="/Solution Items/">
<File Path="../.github/workflows/publish.yml" />
<File Path="../.github/workflows/release_build_and_deploy.yml" />
<File Path="../README.md" />
<File Path="../resources/extension.manifest.json" />
</Folder>
<Project Path="CodingWithCalvin.SuperClean/CodingWithCalvin.SuperClean.csproj" />
</Solution>
4 changes: 2 additions & 2 deletions src/CodingWithCalvin.SuperClean/Commands/SuperCleanCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ private SuperCleanCommand(Package package)
}

var menuCommandId = new CommandID(
PackageGuids.CommandSetGuid,
PackageIds.SuperCleanCommandId
VSCommandTableVsct.CommandSetGuid.Guid,
VSCommandTableVsct.CommandSetGuid.SuperCleanCommandId
);
var menuItem = new MenuCommand(OpenPathWrapper, menuCommandId);
commandService.AddCommand(menuItem);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"profiles": {
"Debug Extension": {
"commandName": "Executable",
"executablePath": "C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\Common7\\IDE\\devenv.exe",
"commandLineArgs": "/rootSuffix Exp"
}
}
}
4 changes: 2 additions & 2 deletions src/CodingWithCalvin.SuperClean/SuperCleanPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
namespace CodingWithCalvin.SuperClean
{
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
[Guid(PackageGuids.PackageGuidString)]
[InstalledProductRegistration(VsixInfo.DisplayName, VsixInfo.Description, VsixInfo.Version)]
[Guid(VSCommandTableVsct.PackageGuidString)]
[ProvideMenuResource("Menus.ctmenu", 1)]
public sealed class SuperCleanPackage : AsyncPackage
{
Expand Down
32 changes: 0 additions & 32 deletions src/CodingWithCalvin.SuperClean/VSCommandTable.cs

This file was deleted.

18 changes: 0 additions & 18 deletions src/CodingWithCalvin.SuperClean/source.extension.cs

This file was deleted.