I inherited a C # solution where projects have a customized "Command Prompt After Build" command. There are several custom property macros on this command line that copy various output files to specific folders. However, when I build any of the projects, macros are incorrectly defined as empty lines.
eg.
copy "$(TargetPath)" "$(PluginPath)\$(ConfigurationName)"
Standard macros, for example. $ (TargetPath) works fine, but I see no way to control the value of user-defined macros. At the stage after the build, there is a button "Macros →" in which standard macros are displayed, but I do not see the ability to edit their values or add new user-defined macros.
It seems that the previous developer worked, so what am I missing?
I read that macros can be defined in .vsprops files, but only Visual C ++ projects support these files. When I look in the Property Manager window, I only see the message "No Visual C ++ project loaded." (I would expect custom property property macros to be equally useful in the Post-Build Command Line of C ++ projects, as they are in C # or projects in any language.)
source
share