$(OutDir)的含义 [英] Meaning of $(OutDir)
问题描述
我正在查看我的视觉工作室项目的属性,并看到以下内容:
I was looking in the properties of my visual studio project and saw the following:
$(OutDir)\$(ProjectName).exe
我很好奇视觉工作室如何知道outdir的价值,看到这个值。而且,哪个语言是这样的,例如C#,python?换句话说,写在
I was curious how does visual studio know the value of outdir and how can i see this value. Moreover, which language is this, eg C#, python? In other words, what language is $(OutDir)\$(ProjectName).exe
written in
推荐答案
$(OutDir)
是Visual Studio Build Property宏。
$(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)
设置为当前配置的输出目录,例如 $(SolutionDir)/ $(配置)\
。
$(OutputDir)
should be set to the output directory for the current configuration, e.g. $(SolutionDir)/$(Configuration)\
.
请注意,您的Windows环境变量导入为Build您的项目中的属性宏,所以在您将看到的marco列表中,例如 $(路径)
, $(HOME)
, $(TEMP)
。
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)
.
这篇关于$(OutDir)的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!