1

I want to set my some define in code to result from some command (for example get current revision number). What is the easiest way to achieve this ? I think about generate in prebuild step some header file, but mayby there is simpler solution.

piotrek
  • 1,333
  • 4
  • 17
  • 35

1 Answers1

0

If you can change the build process command lines, you might be able to integrate this into VS command line via /D parameter. See also this question for discussion on how output from some command can be integrated into another command.

Community
  • 1
  • 1
Petr
  • 9,812
  • 1
  • 28
  • 52