Reputation: 11780
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
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
Reputation: 1010
The official Microsoft documentation for VS2017 is here and for VS 2019 is here.
Upvotes: 4
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