VCFileConfiguration.Compile 메서드
선택한 파일 또는 참조를 컴파일합니다.
네임스페이스: Microsoft.VisualStudio.VCProjectEngine
어셈블리: Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)
구문
‘선언
Sub Compile ( _
forceBuild As Boolean, _
waitOnBuild As Boolean _
)
void Compile(
bool forceBuild,
bool waitOnBuild
)
void Compile(
[InAttribute] bool forceBuild,
[InAttribute] bool waitOnBuild
)
abstract Compile :
forceBuild:bool *
waitOnBuild:bool -> unit
function Compile(
forceBuild : boolean,
waitOnBuild : boolean
)
매개 변수
- forceBuild
형식: System.Boolean
강제로 빌드할지 여부를 결정하는 부울 값입니다.강제로 빌드하려면 true이고, 그렇지 않으면 false 입니다.
- waitOnBuild
형식: System.Boolean
빌드되기를 기다릴지 여부를 결정하는 부울 값입니다.기다리려면 true이고, 그렇지 않으면 false 입니다.
설명
경우 forceBuild 로 설정 된 true, 프로젝트 만료 되지 않은 경우 컴파일이 발생 하지 않습니다.프로젝트를 마우스 오른쪽 단추로 클릭 하 여 사용자 인터페이스 (UI)에 컴파일을 시작 하면 동일 처럼 forceBuild입니다 true 및 waitOnBuild입니다 false.빌드 출력에 종속 되어 있는 경우 설정 해야 waitOnBuild 에 true.
예제
' Compiles the first project in the solution.
' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have
' a Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim file As VCFile
Dim col As IVCCollection
Dim fileconfig As VCFileConfiguration
Dim prj As VCProject
prj = DTE.Solution.Projects.Item(1).Object
col = prj.Files
file = col.Item(1)
col = file.FileConfigurations
fileconfig = col.Item("Debug|Win32")
fileconfig.Compile(False, True)
End Sub
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.