C# Class VsTeXProject.VisualStudio.Project.ProjectConfig

Inheritance: IVsCfg, IVsProjectCfg, IVsProjectCfg2, IVsProjectFlavorCfg, IVsDebuggableProjectCfg, ISpecifyPropertyPages, IVsSpecifyProjectDesignerPages, IVsCfgBrowseObject
Exibir arquivo Open project: mimura1133/vstex Class Usage Examples

Private Properties

Property Type Description
GetCfgPropertyPages void
GetMsBuildProperty Microsoft.Build.Execution.ProjectPropertyInstance
GetXmlFragment int
IVsProjectFlavorCfg int
IVsProjectFlavorCfg int
IsFlavorDirty int
SetPropertyUnderCondition void
TrySplitConfigurationCanonicalName bool

Public Methods

Method Description
DebugLaunch ( uint grfLaunch ) : int

Called by the vs shell to start debugging (managed or unmanaged). Override this method to support other debug engines.

EnumOutputs ( IVsEnumOutputs &eo ) : int
GetCfg ( IVsCfg &cfg ) : int

Maps back to the configuration corresponding to the browse object.

GetConfigurationProperty ( string propertyName, bool resetCache ) : string
GetPages ( CAUUID pages ) : void
GetProjectDesignerPages ( CAUUID pages ) : int

Implementation of the IVsSpecifyProjectDesignerPages. It will retun the pages that are configuration dependent.

GetProjectItem ( IVsHierarchy &hier, uint &itemid ) : int

Maps back to the hierarchy or project item object corresponding to the browse object.

OpenOutput ( string name, IVsOutput &output ) : int
OpenOutputGroup ( string szCanonicalName, IVsOutputGroup &ppIVsOutputGroup ) : int
OutputsRequireAppRoot ( int &pfRequiresAppRoot ) : int
PrepareBuild ( bool clean ) : void
ProjectConfig ( ProjectNode project, string configuration ) : System
QueryDebugLaunch ( uint flags, int &fCanLaunch ) : int

Determines whether the debugger can be launched, given the state of the launch flags.

SetConfigurationProperty ( string propertyName, string propertyValue ) : void
get_BuildableProjectCfg ( IVsBuildableProjectCfg &pb ) : int
get_CanonicalName ( string &name ) : int
get_CfgType ( System.Guid &iidCfg, IntPtr &ppCfg ) : int
get_DisplayName ( string &name ) : int

The display name is a two part item first part is the config name, 2nd part is the platform name

get_IsDebugOnly ( int &fDebug ) : int
get_IsPackaged ( int &pkgd ) : int
get_IsPrivate ( int &pfPrivate ) : int
get_IsReleaseOnly ( int &fRelease ) : int
get_IsSpecifyingOutputSupported ( int &f ) : int
get_OutputGroups ( uint celt, IVsOutputGroup rgpcfg, uint pcActual ) : int
get_Platform ( System.Guid &platform ) : int
get_ProjectCfgProvider ( IVsProjectCfgProvider &p ) : int
get_RootURL ( string &root ) : int
get_TargetCodePage ( uint &target ) : int
get_UpdateSequenceNumber ( ULARGE_INTEGER li ) : int
get_VirtualRoot ( string &pbstrVRoot ) : int

Protected Methods

Method Description
CreateOutputGroup ( ProjectNode project, string>.KeyValuePair group ) : OutputGroup

Private Methods

Method Description
GetCfgPropertyPages ( CAUUID pages ) : void

Retrieves the configuration dependent property pages.

GetMsBuildProperty ( string propertyName, bool resetCache ) : Microsoft.Build.Execution.ProjectPropertyInstance
GetXmlFragment ( System.Guid flavor, _PersistStorageType storageType, string &fragment ) : int

If flavored, ask the flavor if it wants to provide an XML fragment

IVsProjectFlavorCfg ( ) : int

This is called to let the flavored config let go of any reference it may still be holding to the base config

IVsProjectFlavorCfg ( System.Guid &iidCfg, IntPtr &ppCfg ) : int

Actual implementation of get_CfgType. When not flavored or when the flavor delegate to use we end up creating the requested config if we support it.

IsFlavorDirty ( _PersistStorageType storageType ) : int

If flavored, and if the flavor config can be dirty, ask it if it is dirty

SetPropertyUnderCondition ( string propertyName, string propertyValue, string condition ) : void

Emulates the behavior of SetProperty(name, value, condition) on the old MSBuild object model. This finds a property group with the specified condition (or creates one if necessary) then sets the property in there.

TrySplitConfigurationCanonicalName ( string canonicalName, string &configName, string &platformName ) : bool

Splits the canonical configuration name into platform and configuration name.

Method Details

CreateOutputGroup() protected method

protected CreateOutputGroup ( ProjectNode project, string>.KeyValuePair group ) : OutputGroup
project ProjectNode
group string>.KeyValuePair
return OutputGroup

DebugLaunch() public method

Called by the vs shell to start debugging (managed or unmanaged). Override this method to support other debug engines.
public DebugLaunch ( uint grfLaunch ) : int
grfLaunch uint /// A flag that determines the conditions under which to start the debugger. For valid grfLaunch /// values, see __VSDBGLAUNCHFLAGS ///
return int

EnumOutputs() public method

public EnumOutputs ( IVsEnumOutputs &eo ) : int
eo IVsEnumOutputs
return int

GetCfg() public method

Maps back to the configuration corresponding to the browse object.
public GetCfg ( IVsCfg &cfg ) : int
cfg IVsCfg The IVsCfg object represented by the browse object
return int

GetConfigurationProperty() public method

public GetConfigurationProperty ( string propertyName, bool resetCache ) : string
propertyName string
resetCache bool
return string

GetPages() public method

public GetPages ( CAUUID pages ) : void
pages CAUUID
return void

GetProjectDesignerPages() public method

Implementation of the IVsSpecifyProjectDesignerPages. It will retun the pages that are configuration dependent.
public GetProjectDesignerPages ( CAUUID pages ) : int
pages CAUUID The pages to return.
return int

GetProjectItem() public method

Maps back to the hierarchy or project item object corresponding to the browse object.
public GetProjectItem ( IVsHierarchy &hier, uint &itemid ) : int
hier IVsHierarchy Reference to the hierarchy object.
itemid uint Reference to the project item.
return int

OpenOutput() public method

public OpenOutput ( string name, IVsOutput &output ) : int
name string
output IVsOutput
return int

OpenOutputGroup() public method

public OpenOutputGroup ( string szCanonicalName, IVsOutputGroup &ppIVsOutputGroup ) : int
szCanonicalName string
ppIVsOutputGroup IVsOutputGroup
return int

OutputsRequireAppRoot() public method

public OutputsRequireAppRoot ( int &pfRequiresAppRoot ) : int
pfRequiresAppRoot int
return int

PrepareBuild() public method

public PrepareBuild ( bool clean ) : void
clean bool
return void

ProjectConfig() public method

public ProjectConfig ( ProjectNode project, string configuration ) : System
project ProjectNode
configuration string
return System

QueryDebugLaunch() public method

Determines whether the debugger can be launched, given the state of the launch flags.
public QueryDebugLaunch ( uint flags, int &fCanLaunch ) : int
flags uint /// Flags that determine the conditions under which to launch the debugger. /// For valid grfLaunch values, see __VSDBGLAUNCHFLAGS or __VSDBGLAUNCHFLAGS2. ///
fCanLaunch int true if the debugger can be launched, otherwise false
return int

SetConfigurationProperty() public method

public SetConfigurationProperty ( string propertyName, string propertyValue ) : void
propertyName string
propertyValue string
return void

get_BuildableProjectCfg() public method

public get_BuildableProjectCfg ( IVsBuildableProjectCfg &pb ) : int
pb IVsBuildableProjectCfg
return int

get_CanonicalName() public method

public get_CanonicalName ( string &name ) : int
name string
return int

get_CfgType() public method

public get_CfgType ( System.Guid &iidCfg, IntPtr &ppCfg ) : int
iidCfg System.Guid
ppCfg System.IntPtr
return int

get_DisplayName() public method

The display name is a two part item first part is the config name, 2nd part is the platform name
public get_DisplayName ( string &name ) : int
name string
return int

get_IsDebugOnly() public method

public get_IsDebugOnly ( int &fDebug ) : int
fDebug int
return int

get_IsPackaged() public method

public get_IsPackaged ( int &pkgd ) : int
pkgd int
return int

get_IsPrivate() public method

public get_IsPrivate ( int &pfPrivate ) : int
pfPrivate int
return int

get_IsReleaseOnly() public method

public get_IsReleaseOnly ( int &fRelease ) : int
fRelease int
return int

get_IsSpecifyingOutputSupported() public method

public get_IsSpecifyingOutputSupported ( int &f ) : int
f int
return int

get_OutputGroups() public method

public get_OutputGroups ( uint celt, IVsOutputGroup rgpcfg, uint pcActual ) : int
celt uint
rgpcfg IVsOutputGroup
pcActual uint
return int

get_Platform() public method

public get_Platform ( System.Guid &platform ) : int
platform System.Guid
return int

get_ProjectCfgProvider() public method

public get_ProjectCfgProvider ( IVsProjectCfgProvider &p ) : int
p IVsProjectCfgProvider
return int

get_RootURL() public method

public get_RootURL ( string &root ) : int
root string
return int

get_TargetCodePage() public method

public get_TargetCodePage ( uint &target ) : int
target uint
return int

get_UpdateSequenceNumber() public method

public get_UpdateSequenceNumber ( ULARGE_INTEGER li ) : int
li ULARGE_INTEGER
return int

get_VirtualRoot() public method

public get_VirtualRoot ( string &pbstrVRoot ) : int
pbstrVRoot string
return int