C# Class Meta.MetaPackage

Inheritance: Microsoft.VisualStudio.Shell.Package, IVsShellPropertyEvents, IVsSolutionEvents, IVsUpdateSolutionEvents2
显示文件 Open project: brandon-kohn/Meta Class Usage Examples

Public Methods

Method Description
Build ( IVsHierarchy hierarchy, string targets, ICollection loggers, bool onlyProject = true, bool isDesignTimeBuild = true, bool NeedsUIThread = true, bool async = true ) : bool
ClaimBuildState ( ) : void
ClaimInstantiationState ( ) : void
Dispose ( ) : void
FreeBuildState ( ) : void
FreeInstantiationState ( ) : void
GetBuildOutputPane ( ) : IVsOutputWindowPane
GetHierarchy ( System serviceProvider, EnvDTE project ) : IVsHierarchy
GetOptions ( ) : MetaPackage.Options
GetProfileOutputPane ( ) : IVsOutputWindowPane
GetSelectedNodes ( ) : IList

Gets the list of selected IVsHierarchy objects

IsSolutionBuilding ( ) : bool
MetaPackage ( ) : System

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.

TryClaimBuildState ( ) : bool
TryClaimInstantiationState ( ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Initialize ( ) : void

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initialization code that rely on services provided by VisualStudio.

Private Methods

Method Description
BuildProfileCallback ( object sender, EventArgs e ) : void

This function is the callback used to execute a command when the a menu item is clicked. See the Initialize method to see how the menu item is associated to this function using the OleMenuCommandService service and the MenuCommand class.

CancelBuild ( ) : void
CleanProject ( IVsHierarchy hierarchy, bool async = false ) : void
GenerateBoostBuildFileCallback ( object sender, EventArgs e ) : void

IVsShellPropertyEvents ( int propid, object var ) : int
IVsSolutionEvents ( IVsHierarchy pStubHierarchy, IVsHierarchy pRealHierarchy ) : int
IVsSolutionEvents ( IVsHierarchy pHierarchy, int fAdded ) : int
IVsSolutionEvents ( IVsHierarchy pHierarchy, int fRemoving, int &pfCancel ) : int
IVsSolutionEvents ( object pUnkReserved ) : int
IVsSolutionEvents ( object pUnkReserved, int fNewSolution ) : int
IVsUpdateSolutionEvents ( ) : int
IVsUpdateSolutionEvents ( IVsHierarchy pIVsHierarchy ) : int
IVsUpdateSolutionEvents ( int &pfCancelUpdate ) : int
IVsUpdateSolutionEvents ( int fSucceeded, int fModified, int fCancelCommand ) : int
IVsUpdateSolutionEvents2 ( ) : int
IVsUpdateSolutionEvents2 ( IVsHierarchy pIVsHierarchy ) : int
IVsUpdateSolutionEvents2 ( IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, int &pfCancel ) : int
IVsUpdateSolutionEvents2 ( IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, int fSuccess, int fCancel ) : int
IVsUpdateSolutionEvents2 ( int &pfCancelUpdate ) : int
IVsUpdateSolutionEvents2 ( int fSucceeded, int fModified, int fCancelCommand ) : int
TemplateProfileCallback ( object sender, EventArgs e ) : void
uiContex1Cmd_BeforeQueryStatus ( object sender, EventArgs e ) : void
uiContex2Cmd_BeforeQueryStatus ( object sender, EventArgs e ) : void
uiContex3Cmd_BeforeQueryStatus ( object sender, EventArgs e ) : void

Method Details

Build() public method

public Build ( IVsHierarchy hierarchy, string targets, ICollection loggers, bool onlyProject = true, bool isDesignTimeBuild = true, bool NeedsUIThread = true, bool async = true ) : bool
hierarchy IVsHierarchy
targets string
loggers ICollection
onlyProject bool
isDesignTimeBuild bool
NeedsUIThread bool
async bool
return bool

ClaimBuildState() public method

public ClaimBuildState ( ) : void
return void

ClaimInstantiationState() public method

public ClaimInstantiationState ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FreeBuildState() public method

public FreeBuildState ( ) : void
return void

FreeInstantiationState() public method

public FreeInstantiationState ( ) : void
return void

GetBuildOutputPane() public method

public GetBuildOutputPane ( ) : IVsOutputWindowPane
return IVsOutputWindowPane

GetHierarchy() public method

public GetHierarchy ( System serviceProvider, EnvDTE project ) : IVsHierarchy
serviceProvider System
project EnvDTE
return IVsHierarchy

GetOptions() public method

public GetOptions ( ) : MetaPackage.Options
return MetaPackage.Options

GetProfileOutputPane() public method

public GetProfileOutputPane ( ) : IVsOutputWindowPane
return IVsOutputWindowPane

GetSelectedNodes() public method

Gets the list of selected IVsHierarchy objects
public GetSelectedNodes ( ) : IList
return IList

Initialize() protected method

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initialization code that rely on services provided by VisualStudio.
protected Initialize ( ) : void
return void

IsSolutionBuilding() public method

public IsSolutionBuilding ( ) : bool
return bool

MetaPackage() public method

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.
public MetaPackage ( ) : System
return System

TryClaimBuildState() public method

public TryClaimBuildState ( ) : bool
return bool

TryClaimInstantiationState() public method

public TryClaimInstantiationState ( ) : bool
return bool