I work with multiple projects, and I want to recursively delete all folders with the name \'bin\' or \'obj\' that way I am sure that all projects will rebuild everything (so
I use to always add a new target on my solutions for achieving this.
And you can call it from command line
msbuild /t:clean_folders
This can be your batch file.
msbuild /t:clean_folders PAUSE