Last post Feb 07, 2008 11:15 AM by andrew_
Feb 07, 2008 11:15 AM|andrew_|LINK
I went ahead and set myself up a WDP. I have the need to delete the contents of my OutputPath directory before the build executes and copies the files to that location. Below is the Target setup.
<Exec Command="rmdir /s /q "$(OutputPath)"" WorkingDirectory="$(MSBuildProjectDirectory)" IgnoreExitCode="true" />
I have verified that all paths are correct. This is the error I am now receiving.
Error 5 The target directory is not empty, and does not appear to contain a previously compiled application. Please delete it manually, or choose a different target. (FIle) ASPNETCOMPILER (Line) 1 (Column) 1
There doesnt appear to be any solution to this anywhere online, and the error is, as far as i can tell, undocumented on msdn.