My pre-build event script starts by checking a file, then modifying that file by running another tool. But the tool fails to update my file because the checkout doesn't occur/complete. Why?
Here is an example of my script:
tf checkout $(ProjectDir)MyFileToCheckout.cs
mytool.exe /argument:MyFileToCheckout.cs
At the moment, I have to manually checkout the file in Visual Studio, then build.