Created
September 13, 2018 03:25
-
-
Save DavidRogersDev/93659f0b7af142dd8d0695e50654f30d to your computer and use it in GitHub Desktop.
Bat file to clean out a Visual Studio Project on the File System
This file contains hidden or 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
del /s /ah /f *.suo | |
del /s /f *.user | |
del /s /f *.cache | |
del /s /f *.keep | |
del /s /ah StyleCop.Cache | |
rd /s /q bin obj .vs ClientBin _Resharper.* _Upgrade* TestResults | |
del dirs.txt | |
dir /s /b /ad bin > dirs.txt | |
dir /s /b /ad obj >> dirs.txt | |
dir /s /b /ad:h .vs >> dirs.txt | |
dir /s /b /ad ClientBin >> dirs.txt | |
dir /s /b /ad _Resharper.* >> dirs.txt | |
dir /s /b /ad _Upgrade* >> dirs.txt | |
dir /s /b /ad TestResults >> dirs.txt | |
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i" | |
del dirs.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment