When I clean my solutions I want it really clean, i.e. no obj folder and no bin folder in any of my projects. I usually do this in preparation for zipping the solution or branching/labeling. Unfortunately the VS2005 'Clean Solution' doesn't accomodate this. I thought it would be fairly straight forward to do this in MSBuild but my initial attempts failed. I finally came up with the build script below. It achieves 98% of what I want (still doesn't remove the 'bin' dir, just empties it).
Please test on throw away code first and use at your own risk.
<ItemGroup>
<CleanFiles Include="**\bin\**\*.dll;**\obj\*FileList.txt" />
</ItemGroup>
<Target Name="Clean">
<RemoveDir Directories="@(CleanFiles->'%(RelativeDir)')" ContinueOnError="true" />
</Target>
If you have a better/simpler/cleaner :) solution, please let me know.