I have a vcproj file that includes a simple pre-build event in lines:
Helpertask.exe $(ProjectDir)
This works fine on developer computers, but when the solution is built on our TFS 2008 build server under MSBuild, $ (ProjectDir) is either empty or points to an unlinked folder on the server!
So far, the best solution I've dealt with is the complex code of the developer and server path:
if exist C:\DeveloperCode\MyProject HelperTask.exe C:\DeveloperCode\MyProject if exist D:\BuildServerCode\MyProject HelperTask.exe D:\BuildServerCode\MyProject
This hack works in the post- build steps, but it does not work for the pre -build step (the Pre-build task now does nothing in MSBuild!)
Do you have any ideas for a fix or workaround? I have very little hair left!
source share