In Visual Studio 2013 (or 2015), I have a particular project that in the post-build event, I'm trying to pass $(TargetDir) to a batch file.
The problem is, all the macros are empty, except for the macros beginning in "Solution". Also, all the macros are shown correctly in the "Edit Post-build Event Command line" dialog.
Example
echo ConfigurationName is "$(ConfigurationName)"
Results in
Configuration name is ""