In Visual Studio 2013, this is added at the end of my .csproj file before the close tag </Project>
<Target Name = "clean_folders" AfterTargets="Clean"> <Exec Command = "rd /S /Q obj" /> <Exec Command = "rd /S /Q bin" /> </Target>
It didnβt work at first, but I noticed that Visual Studio (or R #, not sure) re-added DesignTimeResolveAssemblyReferencesInput.cache to the obj folder and also added the current \bin folder again (I have different assemblies in different subfolders under \bin ). It cleared everything else, including 25 other build configurations that I have from the imported .csproj files (yes, I know).
Be careful if you perform a batch overhaul of more than one configuration, as it simply wipes out all previous efforts for each rebuild, leaving you with only the last. Whups.
CAD bloke Aug 03 '14 at 23:07 2014-08-03 23:07
source share