C# Class VsTeXProject.VisualStudio.Project.ProjectConfig

Inheritance: IVsCfg, IVsProjectCfg, IVsProjectCfg2, IVsProjectFlavorCfg, IVsDebuggableProjectCfg, ISpecifyPropertyPages, IVsSpecifyProjectDesignerPages, IVsCfgBrowseObject
Afficher le fichier Open project: mimura1133/vstex Class Usage Examples

Private Properties

Свойство Type Description
GetCfgPropertyPages void
GetMsBuildProperty Microsoft.Build.Execution.ProjectPropertyInstance
GetXmlFragment int
IVsProjectFlavorCfg int
IVsProjectFlavorCfg int
IsFlavorDirty int
SetPropertyUnderCondition void
TrySplitConfigurationCanonicalName bool

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
CreateOutputGroup ( ProjectNode project, string>.KeyValuePair group ) : OutputGroup

Private Methods

Méthode 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 méthode

protected CreateOutputGroup ( ProjectNode project, string>.KeyValuePair group ) : OutputGroup
project ProjectNode
group string>.KeyValuePair
Résultat OutputGroup

DebugLaunch() public méthode

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 ///
Résultat int

EnumOutputs() public méthode

public EnumOutputs ( IVsEnumOutputs &eo ) : int
eo IVsEnumOutputs
Résultat int

GetCfg() public méthode

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
Résultat int

GetConfigurationProperty() public méthode

public GetConfigurationProperty ( string propertyName, bool resetCache ) : string
propertyName string
resetCache bool
Résultat string

GetPages() public méthode

public GetPages ( CAUUID pages ) : void
pages CAUUID
Résultat void

GetProjectDesignerPages() public méthode

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

GetProjectItem() public méthode

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.
Résultat int

OpenOutput() public méthode

public OpenOutput ( string name, IVsOutput &output ) : int
name string
output IVsOutput
Résultat int

OpenOutputGroup() public méthode

public OpenOutputGroup ( string szCanonicalName, IVsOutputGroup &ppIVsOutputGroup ) : int
szCanonicalName string
ppIVsOutputGroup IVsOutputGroup
Résultat int

OutputsRequireAppRoot() public méthode

public OutputsRequireAppRoot ( int &pfRequiresAppRoot ) : int
pfRequiresAppRoot int
Résultat int

PrepareBuild() public méthode

public PrepareBuild ( bool clean ) : void
clean bool
Résultat void

ProjectConfig() public méthode

public ProjectConfig ( ProjectNode project, string configuration ) : System
project ProjectNode
configuration string
Résultat System

QueryDebugLaunch() public méthode

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
Résultat int

SetConfigurationProperty() public méthode

public SetConfigurationProperty ( string propertyName, string propertyValue ) : void
propertyName string
propertyValue string
Résultat void

get_BuildableProjectCfg() public méthode

public get_BuildableProjectCfg ( IVsBuildableProjectCfg &pb ) : int
pb IVsBuildableProjectCfg
Résultat int

get_CanonicalName() public méthode

public get_CanonicalName ( string &name ) : int
name string
Résultat int

get_CfgType() public méthode

public get_CfgType ( System.Guid &iidCfg, IntPtr &ppCfg ) : int
iidCfg System.Guid
ppCfg System.IntPtr
Résultat int

get_DisplayName() public méthode

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
Résultat int

get_IsDebugOnly() public méthode

public get_IsDebugOnly ( int &fDebug ) : int
fDebug int
Résultat int

get_IsPackaged() public méthode

public get_IsPackaged ( int &pkgd ) : int
pkgd int
Résultat int

get_IsPrivate() public méthode

public get_IsPrivate ( int &pfPrivate ) : int
pfPrivate int
Résultat int

get_IsReleaseOnly() public méthode

public get_IsReleaseOnly ( int &fRelease ) : int
fRelease int
Résultat int

get_IsSpecifyingOutputSupported() public méthode

public get_IsSpecifyingOutputSupported ( int &f ) : int
f int
Résultat int

get_OutputGroups() public méthode

public get_OutputGroups ( uint celt, IVsOutputGroup rgpcfg, uint pcActual ) : int
celt uint
rgpcfg IVsOutputGroup
pcActual uint
Résultat int

get_Platform() public méthode

public get_Platform ( System.Guid &platform ) : int
platform System.Guid
Résultat int

get_ProjectCfgProvider() public méthode

public get_ProjectCfgProvider ( IVsProjectCfgProvider &p ) : int
p IVsProjectCfgProvider
Résultat int

get_RootURL() public méthode

public get_RootURL ( string &root ) : int
root string
Résultat int

get_TargetCodePage() public méthode

public get_TargetCodePage ( uint &target ) : int
target uint
Résultat int

get_UpdateSequenceNumber() public méthode

public get_UpdateSequenceNumber ( ULARGE_INTEGER li ) : int
li ULARGE_INTEGER
Résultat int

get_VirtualRoot() public méthode

public get_VirtualRoot ( string &pbstrVRoot ) : int
pbstrVRoot string
Résultat int