Last active
January 4, 2021 19:01
-
-
Save jkereako/d5a4dfdfef28a8899802796973748c22 to your computer and use it in GitHub Desktop.
Deletes all the stuff that VisualStudio's Clean ignores
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.