BuildManager 인터페이스

다른 개발 업체에서 사용자 지정 도구를 실행하여 만든 이식 가능한 실행 파일(PE)을 관리하는 데 사용됩니다.

네임스페이스:  VSLangProj
어셈블리:  VSLangProj(VSLangProj.dll)

구문

‘선언
<GuidAttribute("C711E2B7-3C58-4C37-9359-705208A890AE")> _
Public Interface BuildManager
[GuidAttribute("C711E2B7-3C58-4C37-9359-705208A890AE")]
public interface BuildManager
[GuidAttribute(L"C711E2B7-3C58-4C37-9359-705208A890AE")]
public interface class BuildManager
[<GuidAttribute("C711E2B7-3C58-4C37-9359-705208A890AE")>]
type BuildManager =  interface end
public interface BuildManager

BuildManager 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성 ContainingProject 선택한 항목의 일부인 프로젝트를 가져옵니다.읽기 전용입니다.
Public 속성 DesignTimeOutputMonikers 프로젝트의 임시 PE(이식 가능한 실행 파일) 모니커를 가져옵니다.
Public 속성 DTE 최상위 확장성 개체를 가져옵니다.
Public 속성 Parent 지정된 개체의 직계 개체를 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 BuildDesignTimeOutput 임시 이식 가능한 실행 파일(PE)을 빌드하고 이에 대한 설명을 XML 문자열 형식으로 반환합니다.

위쪽

설명

BuildManager를 사용하면 사용자 지정 도구 출력을 통해 만들어진 프로젝트의 임시 PE에 액세스할 수 있습니다. 자세한 내용은 BuildManager 개체 소개RunCustomTool 메서드를 참조하십시오.

예제

다음 예제에서는 프로젝트의 임시 PE에 대한 모든 모니커 목록을 표시합니다. CustomTool 속성이 디자인 타임 출력을 생성하는 사용자 지정 도구로 설정된 프로젝트 항목에만 모니커가 연결되어 있습니다. 모니커를 쉽게 볼 수 있는 방법 중 하나는 Windows 응용 프로그램 프로젝트를 만들고 XML 스키마 프로젝트 항목을 추가하는 것입니다. XML 스키마 프로젝트 항목의 CustomTool 속성은 MSDataSetGenerator로 설정되어 있습니다.

' Macro editor
Sub BuildManagerExample()
   Try
      Dim proj As VSLangProj.VSProject = _
         CType(DTE.Solution.Projects.Item(1).Object, VSLangProj.VSProject)
      Dim build As BuildManager = proj.BuildManager
      Dim monikers As String() = _
         CType(build.DesignTimeOutputMonikers, String())
      Dim moniker As String
      ' List the monikers.
      For Each moniker In monikers
         MsgBox(moniker & ControlChars.CrLf & _
            build.BuildDesignTimeOutput(moniker))
      Next
      ' Hook up some events.
      Dim buildEvents As BuildManagerEvents = _
         proj.Events.BuildManagerEvents
      AddHandler buildEvents.DesignTimeOutputDeleted, _
         AddressOf OutputDeleted
      AddHandler buildEvents.DesignTimeOutputDirty, _
         AddressOf OutputDirty
   Catch ex As System.Exception
      MsgBox("Cannot list monikers and hook up events.")
   End Try
End Sub

Sub OutputDeleted(ByVal deletedMoniker As String)
   MsgBox(deletedMoniker & " was deleted.")
End Sub

Sub OutputDirty(ByVal dirtyMoniker As String)
   MsgBox(dirtyMoniker & " is dirty.")
End Sub

참고 항목

참조

VSLangProj 네임스페이스