My post build command is
call "$(ProjectDir)MyFile.bat"
And getting build error:
Error 1 The command "call C:\MyProject\MyFile.bat" exited with code 1. C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets 4548 5
What am I missing here? Working on TFS source code, is that the reason getting this error?
For testing in MyFile.bat
the only code is mkdir MYTestFolder
, but then I am also getting the same error.
It seems like the syntax of the call is correct. Therefore I believe it's failing inside the batch file. I suggest putting the first few lines of the batch to write the time into a log file, so you can confirm it's being called. Do this before any of the actual work, so it can be sure that the batch is being executed.
MyFile.bat