简体   繁体   English

这个MSVC符号是什么意思?

[英]What does this MSVC symbol mean?

I noticed this little sign on a project source file and didn't know what it meant. 我注意到项目源文件上的这个小标志,但不知道它的含义。

在此处输入图片说明

It means the file has been configured to be ignored (not compiled) in the project. 这意味着文件已被配置为在项目中被忽略(未编译)。

The specific option is called 'Exclude From Build' in the General property. 该特定选项在“常规”属性中称为“从生成中排除”。

In addition to Steve's answer, I would add: 除了史蒂夫的答案,我还要添加:

  • Your project/solution may have multilple configurations (Debug/Release, Win32/x64, and other custom configurations like "HighPerformance", "ForMobile", "ManagedDLL"), and you may like not to have set of source files get compiled. 您的项目/解决方案可能有multilple配置(调试/发布的Win32 / 64,而像“高性能”等自定义配置“ ForMobile”,“ManagedDLL”),并且你可能想的都设置源文件被编译。 For, this you may put them into "Excludes". 为此,您可以将它们放入“排除”。
  • To put into exclusion, just select the source file (.CPP, .C), open property page for it, and set "Excluded from Build" to Yes. 要排除在外,只需选择源文件(.CPP,.C),为其打开属性页,然后将“从构建中排除”设置为“是”。 To make it part of build process (ie let it compile), set this property to No. 要使其成为构建过程的一部分(即使其编译),请将此属性设置为No。
  • Header Files need not to be put into exclusions, as they wont be compiled by compiler, it is just for programmer's view. 头文件不需要放在排除项中,因为它们不会被编译器编译,仅用于程序员的观点。 Headers are only compiled when some source file do include them. 仅当某些源文件中包含头时才编译头。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM