List of the $(xxx) macro in visual studio

Viewed 10560

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).
4 Answers

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

While it won't include project-specific macros, if you open the Developer Command Prompt for VS (It's in your Start Menu, it's like cmd.exe but with VsDevCmd.bat as part of the launch options), you can type set and it will list out all that it can see, including things like FramewokDir, WindowsSdkDir, etc.

Related