Meaning of $(OutDir)

后端 未结 4 1765
庸人自扰
庸人自扰 2020-12-30 02:13

I was looking in the properties of my visual studio project and saw the following:

$(OutDir)\\$(ProjectName).exe

I was curious how does vis

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 02:46

    $(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).

提交回复
热议问题