Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of the $(xxx) macro in visual studio

Tags:

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).
like image 286
Martin Delille Avatar asked Oct 05 '09 12:10

Martin Delille


2 Answers

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)
like image 82
Geoff Avatar answered Sep 24 '22 02:09

Geoff


The official Microsoft documentation for VS2017 is here and for VS 2019 is here.

like image 32
JPaget Avatar answered Sep 25 '22 02:09

JPaget