I have a post script to copy some files after build.
The script itself is simple, it created a folder and copy a few files into that folder.
If the folder already exist, the script will not create the folder, it will throw an error and continue coping the files.
The problem here is that visual studio will not start debugging if there is an error in the post build script.
I don't care too much about the script error. A simple way to cheat this is manually set the errorlevel value to 0 after running the md command.
md $(TargetDir)\queries & set errorlevel=0
copy /y $(ProjectDir)\queries\* $(TargetDir)\queries
Feng