2

I'm trying to do a checkout of a file using a prebuild step in visual studio 2012.

When I run the command verbatim on the command line it runs and checks out the file. When I try to use the same command as a prebuild step it exits with code 9009.

Do you really think it can't find the file in the context of the prebuild step? I even used macros vs. direct paths, put things in quotes, checked slash directions (/ vs ) but no luck.

My prebuild step is:

     $(DevEnvDir)tf.exe checkout "$(SolutionDir)Includes\js\myFile.js"

I changed tf.exe to DevEnvDir thinking perhaps it couldn't "see" tf.exe, but this still exits with code 9009.

Thanks!

Black Frog
  • 11,595
  • 1
  • 35
  • 66
NullHypothesis
  • 4,286
  • 6
  • 37
  • 79

1 Answers1

4

I figured out what it was:

I needed to have quotes on EVERYTHING including tf.exe (that's so annoying)

this doesn't work

     $(DevEnvDir)tf.exe checkout "$(SolutionDir)Includes\js\myFile.js" 

this does:

     "$(DevEnvDir)tf.exe" checkout "$(SolutionDir)Includes\js\myFile.js" 
NullHypothesis
  • 4,286
  • 6
  • 37
  • 79