views:

34

answers:

2

I know of the following:

  • $(ConfigurationName): for example "Debug" or "Release"
  • $(SolutionDir): directory of the solution
  • $(PlatformName): "Win32" or "x64"

Are there any others?

A: 

If you hit Edit... then Macros you'll get a list of the supported properties, including InputDir, InputFileName, InputPath (ditto for TargetXXX). Also, rather usefully you can refer to $(ENVIRONMENT_VARIABLE)

the_mandrill
Where is "Edit"?
Andreas Bonini
In a C++ project, select the project in the solution explorer, right-click Properties then for example pick Configuration Properties -> General -> Output directory. Click the disclosure control on the right of the edit box and choose Edit, then you'll get a dialog with the Macros button.
the_mandrill
+4  A: 

See Macros for Build Commands and Properties in MSDN for a complete list.

Nick Meyer
ran out of votes for the day :(
Andreas Bonini