Skip to content

Instantly share code, notes, and snippets.

@jkereako
Last active January 4, 2021 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkereako/d5a4dfdfef28a8899802796973748c22 to your computer and use it in GitHub Desktop.
Save jkereako/d5a4dfdfef28a8899802796973748c22 to your computer and use it in GitHub Desktop.
Deletes all the stuff that VisualStudio's Clean ignores
#!/bin/bash -e
#
# Super Clean!
# Copyright (c) 2018 - Jeff Kereakoglow
#
# Deletes all the stuff that VisualStudio's Clean ignores
git clean -xfd
rm -rf "~/.nuget/packages"
@jkereako
Copy link
Author

jkereako commented Jun 1, 2020

This is an improvement on my Gist vsclean.sh. It does the same thing and more, but the commands are simpler.

While developing Xamarin using VisualStudio for Mac, my team and I quickly became aware that VisualStudio's Clean function is unreliable. It never seemed to fully remove all of the object files and it never removed locally cached packages. This script nukes all of it and allows you to rebuild your project from a clean state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment