Martin Delille
Martin Delille

Reputation: 11780

List of the $(xxx) macro in visual studio

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

Upvotes: 22

Views: 11973

Answers (4)

Jan
Jan

Reputation: 2249

Often changing probably, now: VS 2015, VS 2017 & VS 2019

Upvotes: 1

StalePhish
StalePhish

Reputation: 128

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.

Upvotes: 2

JPaget
JPaget

Reputation: 1010

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

Upvotes: 4

Geoff
Geoff

Reputation: 4746

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)

Upvotes: 22

Related Questions