views:

210

answers:

2

I would like to establish a list of all the visual studio macro that can be used in the post-build event script.

  • $(Configuration) : Name of the current build configuration (ie: Debug or Release).
+3  A: 

Just click the Macros >> button in the post build events dialog. I includes the list and a preview of what the result will be. Here is a list any way:

$(OutDir)
$(ConfigurationName)
$(ProjectName)
$(TargetName)
$(TargetPath)
$(ProjectFileName)
$(TargetExt)
$(TargetFileName)
$(DevEnvDir)
$(TargetDir)
$(ProjectDir)
$(SolutionFileName)
$(SolutionPath)
$(SolutionDir)
Geoff
+1  A: 

See this MSDN page.

Julien Lebosquain