Thursday, February 1, 2007

msbuild clean

If you use external programs to create files in your msbuild scripts these won't be deleted by msbuild in the 'clean' target. When your setting up cruise you want a really clean build.

Either add in the generated files as Outputs of the Exec target to tell msbuild about them (like a good boy) or remove the directories:

rmdir /Q /S %(Projects.RootDir)%(Projects.Directory)bin

(where Projects is an ItemGroup of Include="*\*.*proj")

No comments: