VCCLCompilerTool.IgnoreStandardIncludePath 属性

定义

获取或设置一个值,该值指示是否忽略标准包含路径。 IgnoreStandardIncludePath 公开编译器的 /x (忽略标准包含路径) 选项、midl 编译器的 midl 属性页: "常规 " 选项和资源编译器的 " 资源" 属性页 选项。

public:
 property bool IgnoreStandardIncludePath { bool get(); void set(bool value); };
public:
 property bool IgnoreStandardIncludePath { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(61)]
public bool IgnoreStandardIncludePath { [System.Runtime.InteropServices.DispId(61)] get; [System.Runtime.InteropServices.DispId(61)] set; }
[<System.Runtime.InteropServices.DispId(61)>]
[<get: System.Runtime.InteropServices.DispId(61)>]
[<set: System.Runtime.InteropServices.DispId(61)>]
member this.IgnoreStandardIncludePath : bool with get, set
Public Property IgnoreStandardIncludePath As Boolean

属性值

Boolean

如果忽略标准包含路径,则为 true;否则为 false

属性

示例

有关如何编译和运行此示例的信息,请参阅 如何:编译项目模型扩展性的示例代码

下面的示例在 IgnoreStandardIncludePath 集成开发环境 (IDE) 中修改资源编译器的属性:

' add reference to Microsoft.VisualStudio.VCProjectEngine  
Imports EnvDTE  
Imports Microsoft.VisualStudio.VCProjectEngine  

Public Module Module1  
    Sub Test()  
        Dim prj As VCProject  
        Dim cfgs, tools As IVCCollection  
        Dim cfg As VCConfiguration  
        Dim tool As VCCLCompilerTool  
        prj = DTE.Solution.Projects.Item(1).Object  
        cfgs = prj.Configurations  
        cfg = cfgs.Item(1)  
        tool = cfg.Tools("VCResourceCompilerTool")  
        tool.GlobalOptimization = True  
        tool.IgnoreStandardIncludePath = True  
    End Sub  
End Module  

适用于