Visual C++ 2010 "system property sheet" 和 "user property sheet",关键区别?
Visual C++ 2010 "system property sheet" and "user property sheet", key difference?
我正在阅读 MS Press 的 Inside MSBuild 2nd-edition。在第10章介绍"user property sheet"和[=57=的概念时,我想到了一个问题:什么决定了属性 sheet是"user"还是"system"?
如书(p284)所述,用户属性 sheet和系统属性 sheet在Visual Studio 2010 IDE.
所以,
- 从 VC 升级 6.0 和 Microsoft.Cpp。Win32.user 是 "user".
- 应用程序和核心Windows库是"system"。
我首先想到的是
- .props 来自 %LOCALAPPDATA%\Microsoft\MSBuild\v4.0 是 "user "
- .props 来自 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0 是 "system"
但事实并非如此,因为 Upgrade from VC 6.0 来自 C:\Program Files (x86)而它是用户 属性 sheet.
那么关键的决定因素是什么?
好吧,也许作者已经如我所料的那样回答了,但是是含糊不清,模棱两可的。在第 284 页上,有:
The System Property Sheets are pulled into a Visual C++ project via
the following two imports, which you can find at the beginning of your
project file (note that these are not successive lines in the project
file; they are separated by other lines).
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
reader有两种解释这条语句的方式:
- 它强调了 "system property sheets" 如何进入 .vcxproj。但是"system property sheets"的定义在别处有说明。
- 两个特别命名的(
Microsoft.Cpp.Default.props
和Microsoft.Cpp.props
)导入语句定义了所谓的"system property sheet"。 (非常含蓄)
也许作者的意思是两者兼而有之。
我正在阅读 MS Press 的 Inside MSBuild 2nd-edition。在第10章介绍"user property sheet"和[=57=的概念时,我想到了一个问题:什么决定了属性 sheet是"user"还是"system"?
如书(p284)所述,用户属性 sheet和系统属性 sheet在Visual Studio 2010 IDE.
所以,
- 从 VC 升级 6.0 和 Microsoft.Cpp。Win32.user 是 "user".
- 应用程序和核心Windows库是"system"。
我首先想到的是
- .props 来自 %LOCALAPPDATA%\Microsoft\MSBuild\v4.0 是 "user "
- .props 来自 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0 是 "system"
但事实并非如此,因为 Upgrade from VC 6.0 来自 C:\Program Files (x86)而它是用户 属性 sheet.
那么关键的决定因素是什么?
好吧,也许作者已经如我所料的那样回答了,但是是含糊不清,模棱两可的。在第 284 页上,有:
The System Property Sheets are pulled into a Visual C++ project via the following two imports, which you can find at the beginning of your project file (note that these are not successive lines in the project file; they are separated by other lines).
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
reader有两种解释这条语句的方式:
- 它强调了 "system property sheets" 如何进入 .vcxproj。但是"system property sheets"的定义在别处有说明。
- 两个特别命名的(
Microsoft.Cpp.Default.props
和Microsoft.Cpp.props
)导入语句定义了所谓的"system property sheet"。 (非常含蓄)
也许作者的意思是两者兼而有之。