views:

172

answers:

1

I'm one of those people who rather dislike it when random non-source files are dropped by the IDE into my source directory. Especially if these are generated as part of the build.

I've found that by overriding both "<IntermediateOutputPath>" and "<BaseIntermediateOutputPath>" I can strip down the mess left behind to just a couple of empty directories, which I suppose I can tolerate.

However using "<BaseIntermediateOutputPath>" causes Visual Studio to ask whether I really want to open the project because it thinks this is an "unsafe" addition.

Does anyone know how to disable this safety check, or perhaps a way to get rid of all intermediate files without using "<BaseIntermediateOutputPath>"?

+1  A: 

Hi,

Have you tried writing a macro in the post-build event for your project. You should be able to execute

DEL -S -Q MyProject/bin/*.*
DEL -S -Q MyProject/obj/*.*

Hope this helps,

Bill

Bill Mueller
romkyns