(摘自: http://stackoverflow.com/questions/11074717/meaning-of-outdir)
$(OutDir)
is a Visual Studio Build Property Macro.
You can see the values of macros using the Macros >> button in many Properties dialogs.
For instance, in Properties->General->Output Directory, click the dropdown in the value text box, choose Edit..., and in the resulting dialog, click the Macros >> button. This will give you a list of all the macros and their current values.
$(OutputDir)
should be set to the output directory for the current configuration, e.g. $(SolutionDir)/$(Configuration)\
.
Note that your Windows environment variables are imported as Build Property macros in your project, so in the marco list you'll see, e.g. $(Path)
, $(HOME)
, $(TEMP)
.