Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 3.42 KB

README.md

File metadata and controls

74 lines (53 loc) · 3.42 KB

DeepClean

Is a Visual Studio for macOS add-in / extension that let you easily clean projects, NuGet, Xamarin and VS cache without leaving the IDE.
This extension is making it's first steps, please make sure you have a back up of your code before using it!

Features

Under the "File" menu:

  • Delete Solution

Under the "Build" menu:

  • Delete /bin /obj directories
    • Recursively delete all the /bin & /obj directories on the solution level
  • Delete /packages directory

Right click on any directory within the solution:

  • Open terminal at directory

Under the "Tools" menu:

  • Clear NuGet Cache
    • Delete the next directories ~/.nuget/packages & ~/.local/share/NuGet
  • Clear Android Library Cache
    • Delete all the directories within ~/.local/share/Xamarin that matching the next search pattern 'Xamarin.*;
  • Clear Unused Framework Libraries
    • Delete all except current version within:
      • /Library/Frameworks/Mono.framework/Versions
      • /Library/Frameworks/Xamarin.Android.framework/Versions
      • /Library/Frameworks/Xamarin.iOS.framework/Versions
      • /Library/Frameworks/Xamarin.Mac.framework/Versions

Please note that after manipulating NuGet cache, both local or global, you will have to restore NuGet packages for your workspace.

Installation

Automatic

You can download and install DeepClean using the Extension Manager of Visual Studio for Mac by searching the Gallery.

Manual

Alternatively you can download and install it manually using the folowing steps:

Download the latest version from here.
Open Visual Studio for macOS and open the "Extensions..." menu

Now click on "Install from file" and choose the downloaded mpack

It may take few seconds to install but the result should be


The extension will be enabled only when a solution is opened in VS.

Development

Prerequisites

In order to debug this solution you will have to install MonoDevelop.AddinMaker.

The aim of this project is to practice and experiment with Visual Studio for macOS extensions development. To play around with this solution just clone this repository and open it with you VS. To build a mpack package, build the solution in Release mode and execute pack_addin.sh the output will be redirected to Versions directory.

While development I used the next articles:
Как сделать Xamarin Studio чуточку лучше?
How to Write Add-ins of Visual Studio for Mac
Extending Visual Studio for Mac Walkthrough
Cleaning Up Space on Your Xamarin Development Machine

Contributors

Big thanks to our contributors:

License

This project is licensed under the MIT License - see the LICENSE.md file for details