C# Class Microsoft.VisualStudio.Project.ProjectConfig

Inheritance: IVsCfg, IVsProjectCfg, IVsProjectCfg2, IVsProjectFlavorCfg, IVsDebuggableProjectCfg, ISpecifyPropertyPages, IVsSpecifyProjectDesignerPages, IVsCfgBrowseObject
Datei anzeigen Open project: rsdn/nemerle 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
TryGetActiveConfigurationAndPlatform string
TrySplitConfigurationCanonicalName bool

Public Methods

Method Description
ConfigAndPlatformOfCondition ( string condition ) : string>.Tuple
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
Eq ( string str1, string str2 ) : bool
EqPlatform ( string str1, string str2 ) : bool
GetCfg ( IVsCfg &cfg ) : int

Maps back to the configuration corresponding to the browse object.

GetConfigName ( string>.Tuple canonicalConfigName ) : string
GetConfigurationProperty ( string propertyName, bool resetCache ) : string
GetMSBuildPlatform ( string>.Tuple canonicalConfigName ) : string
GetPages ( CAUUID pages ) : void
GetPlatformName ( string>.Tuple canonicalConfigName ) : string
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.

MakeConfigKey ( string>.Tuple canonicalConfigName ) : string
MakeConfigKey ( string configName, string platformName ) : string
MakeMSBuildCondition ( string configName, string platform ) : string
OpenOutput ( string name, IVsOutput &output ) : int
OpenOutputGroup ( string szCanonicalName, IVsOutputGroup &ppIVsOutputGroup ) : int
OutputsRequireAppRoot ( int &pfRequiresAppRoot ) : int
PrepareBuild ( bool clean ) : void
ProjectConfig ( ProjectNode project, string canonicalName ) : 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
ToMSBuildPlatform ( string platform ) : string
ToPlatformName ( string platform ) : string

Return the Platform Name as it display in VS GUI and used in .sln files.

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.

TryGetActiveConfigurationAndPlatform ( System serviceProvider, IVsHierarchy hierarchy ) : string
TrySplitConfigurationCanonicalName ( string canonicalName, string &configName, string &platformName ) : bool

Splits the canonical configuration name into platform and configuration name.

Method Details

ConfigAndPlatformOfCondition() public static method

public static ConfigAndPlatformOfCondition ( string condition ) : string>.Tuple
condition string
return string>.Tuple

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

Eq() public static method

public static Eq ( string str1, string str2 ) : bool
str1 string
str2 string
return bool

EqPlatform() public static method

public static EqPlatform ( string str1, string str2 ) : bool
str1 string
str2 string
return bool

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

GetConfigName() public static method

public static GetConfigName ( string>.Tuple canonicalConfigName ) : string
canonicalConfigName string>.Tuple
return string

GetConfigurationProperty() public method

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

GetMSBuildPlatform() public static method

public static GetMSBuildPlatform ( string>.Tuple canonicalConfigName ) : string
canonicalConfigName string>.Tuple
return string

GetPages() public method

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

GetPlatformName() public static method

public static GetPlatformName ( string>.Tuple canonicalConfigName ) : string
canonicalConfigName string>.Tuple
return string

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

MakeConfigKey() public static method

public static MakeConfigKey ( string>.Tuple canonicalConfigName ) : string
canonicalConfigName string>.Tuple
return string

MakeConfigKey() public static method

public static MakeConfigKey ( string configName, string platformName ) : string
configName string
platformName string
return string

MakeMSBuildCondition() public static method

public static MakeMSBuildCondition ( string configName, string platform ) : string
configName string
platform string
return string

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 canonicalName ) : System
project ProjectNode
canonicalName 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

ToMSBuildPlatform() public static method

public static ToMSBuildPlatform ( string platform ) : string
platform string
return string

ToPlatformName() public static method

Return the Platform Name as it display in VS GUI and used in .sln files.
public static ToPlatformName ( string platform ) : string
platform string Platform name in any form
return string

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