VCCLCompilerTool.RuntimeLibrary 속성

링크에 대한 런타임 라이브러리를 가져오거나 설정합니다. RuntimeLibrary는 컴파일러의 /MD, /MT, /LD(런타임 라이브러리 사용) 옵션 기능을 노출합니다.

네임스페이스:  Microsoft.VisualStudio.VCProjectEngine
어셈블리:  Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)

구문

‘선언
Property RuntimeLibrary As runtimeLibraryOption
runtimeLibraryOption RuntimeLibrary { get; set; }
property runtimeLibraryOption RuntimeLibrary {
    runtimeLibraryOption get ();
    void set (runtimeLibraryOption value);
}
abstract RuntimeLibrary : runtimeLibraryOption with get, set
function get RuntimeLibrary () : runtimeLibraryOption 
function set RuntimeLibrary (value : runtimeLibraryOption)

속성 값

형식: Microsoft.VisualStudio.VCProjectEngine.runtimeLibraryOption
runtimeLibraryOption 값입니다.

예제

참조 하십시오 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일 및이 예제를 실행 하는 방법에 대 한 정보입니다.

다음 예제에서는 수정의 RuntimeLibrary 통합된 개발 환경 (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("VCCLCompilerTool")
        tool.RuntimeLibrary = runtimeLibraryOption.rtSingleThreadedDebug
    End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCCLCompilerTool 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스