I'm currently working on a build process, and am running into a slight problem. I have the output directory set up for each project that I want as it's own, but now I would like to delete specific files from the main output directory (This is produced by one project that is set to be output to the build output directory)...
The directory looks like this:
Build Out Folder:
-Folder foo1
-Folder foo2
-Folder foo3
-Folder foo4
-foo.pdb
-foo.dll
Here, I need to delete both the .pdb file, and the .dll file.
I've tried putting this in my csproj file:
<Target Name ="AfterBuild">
<Delete Files="$(TeamBuildOutDir)\$(SolutionName)\**.dll"/>
<Delete Files="$(TeamBuildOutDir)\$(SolutionName)\**.pdb"/>
</Target>
Yet, haven't gotten the results wanted/predicted... I know exactly which file I need to delete (name and everything), just not how to delete them... This is not a web application, so it doesn't have to work for that criteria.