$(OutDir) 的含义 [英] Meaning of $(OutDir)
问题描述
我正在查看我的 Visual Studio 项目的属性并看到以下内容:
I was looking in the properties of my visual studio project and saw the following:
$(OutDir)$(ProjectName).exe
我很好奇 Visual Studio 是如何知道 outdir 的值的,我怎么能看到这个值.此外,这是哪种语言,例如 C#、python?也就是说$(OutDir)$(ProjectName).exe
是用什么语言写的
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 构建属性宏.
$(OutDir)
is a Visual Studio Build Property Macro.
您可以使用许多属性对话框中的宏>>按钮查看宏的值.
You can see the values of macros using the Macros >> button in many Properties dialogs.
例如,在 Properties->General->Output Directory 中,单击值文本框中的下拉菜单,选择 Edit...,然后在出现的对话框中,单击宏>>按钮.这将为您提供所有宏及其当前值的列表.
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)/$(Configuration)
.
$(OutputDir)
should be set to the output directory for the current configuration, e.g. $(SolutionDir)/$(Configuration)
.
请注意,您的 Windows 环境变量作为构建属性宏导入到您的项目中,因此您会在宏列表中看到,例如$(Path)
, $(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屋!