C# Class MonoDevelop.Projects.MSBuild.MSBuildProjectService

Datei anzeigen Open project: powerumc/monodevelop_korean

Private Properties

Property Type Description
CanCreateProject bool
CanCreateSolutionItem bool
CanReadFile bool
CreateGenericProject Task
CreateProject MonoDevelop.Projects.Project
CreateProject MonoDevelop.Projects.Project
CreateSolutionItem SolutionItem
CreateUninitializedInstance SolutionItem
CreateUnknownSolutionItem SolutionItem
FromMSBuildPath bool
FromMSBuildPathRelative string
GetCoreGlobalProperties string>.IDictionary
GetExeLocation string
GetExtensionForItem string
GetImportRedirect string
GetItemTypeNodes IEnumerable
GetLanguageFromGuid string
GetLanguageGuid string
GetMSBuildSupportForFlavors MSBuildSupport
GetMSBuildSupportForProject MSBuildSupport
GetMigrableFlavors List
GetNameForProjectItem string
GetProjectBuilder Task
GetProjectItemType System.Type
GetProjectLoadProgressMonitor MonoDevelop.Core.ProjectLoadProgressMonitor
GetTypeGuidForItem string
GetTypeGuidFromAlias string
GetUnknownProjectTypeInfo MonoDevelop.Projects.Extensions.UnknownProjectTypeNode
HandleGlobalPropertyProviderChanged void
HandlePropertyChanged void
IsAbsoluteMSBuildPath bool
IsKnownFlavorGuid bool
IsKnownTypeGuid bool
LoadExtensionData void
MSBuildProjectService System
MigrateFlavors Task
MigrateProject Task
OnExtensionChanged void
ReadGenericProjectType string
RegisterCustomItemType void
RegisterCustomProjectItemType void
ReleaseProjectBuilder void
ToMSBuildPathRelative string
UnregisterCustomItemType void
UnregisterCustomProjectItemType void

Public Methods

Method Description
CheckHandlerUsesMSBuildEngine ( MonoDevelop.Projects.SolutionFolderItem item, bool &useByDefault, bool &require ) : void
ConvertTypeAliasToGuid ( string type ) : string
ConvertTypeAliasesToGuids ( string types ) : string[]
EscapeString ( string str ) : string
FromMSBuildPath ( string basePath, string relPath ) : string
IsTargetsAvailable ( string targetsPath ) : bool
LoadItem ( MonoDevelop.Core.ProgressMonitor monitor, string fileName, MonoDevelop.Projects.MSBuild.MSBuildFileFormat expectedFormat, string typeGuid, string itemGuid, SolutionLoadContext ctx ) : Task

Loads a solution item

RegisterGenericProjectType ( string projectId, Type type ) : void
ToMSBuildPath ( string baseDirectory, string absPath, bool normalize = true ) : string
TrySplitResourceName ( string fname, string &only_filename, string &culture, string &extn ) : bool
UnescapePath ( string path ) : string
UnscapeString ( string str ) : string

Private Methods

Method Description
CanCreateProject ( string typeGuid ) : bool
CanCreateSolutionItem ( string type, MonoDevelop.Projects.ProjectCreateInformation info, System projectOptions ) : bool
CanReadFile ( FilePath file ) : bool
CreateGenericProject ( string file ) : Task
CreateProject ( string typeGuid ) : Project
CreateProject ( string typeGuid, MonoDevelop.Projects.ProjectCreateInformation info, System projectOptions ) : Project
CreateSolutionItem ( string type, MonoDevelop.Projects.ProjectCreateInformation info, System projectOptions ) : SolutionItem
CreateUninitializedInstance ( Type type ) : SolutionItem

Creates an uninitialized solution item instance

Some subclasses (such as ProjectTypeNode) need to assign some data to the object before it is initialized. However, by default initialization is automatically made by the constructor, so to support this scenario the initialization has to be delayed. This is done by setting the MonoDevelop.DelayItemInitialization logical context property. When this property is set, the object is not initialized, and it has to be manually initialized by calling EnsureInitialized.

CreateUnknownSolutionItem ( MonoDevelop.Core.ProgressMonitor monitor, string fileName, string typeGuid, string unknownTypeGuid, SolutionLoadContext ctx ) : SolutionItem
FromMSBuildPath ( string basePath, string relPath, string &resultPath ) : bool
FromMSBuildPathRelative ( string basePath, string relPath ) : string
GetCoreGlobalProperties ( string slnFile ) : string>.IDictionary
GetExeLocation ( MonoDevelop.Core.Assemblies.TargetRuntime runtime, string toolsVersion ) : string
GetExtensionForItem ( SolutionItem item ) : string
GetImportRedirect ( string project ) : string

Given a project referenced in an Import, returns a project that should be loaded instead, or null if there is no redirect

GetItemTypeNodes ( ) : IEnumerable
GetLanguageFromGuid ( string guid ) : string
GetLanguageGuid ( string language ) : string
GetMSBuildSupportForFlavors ( IEnumerable flavorGuids ) : MSBuildSupport
GetMSBuildSupportForProject ( Project project ) : MSBuildSupport
GetMigrableFlavors ( string flavorGuids ) : List
GetNameForProjectItem ( Type type ) : string
GetProjectBuilder ( MonoDevelop.Core.Assemblies.TargetRuntime runtime, string minToolsVersion, string file, string solutionFile, int customId, bool lockBuilder = false ) : Task
GetProjectItemType ( string itemName ) : Type
GetProjectLoadProgressMonitor ( MonoDevelop.Core.ProgressMonitor monitor ) : MonoDevelop.Core.ProjectLoadProgressMonitor
GetTypeGuidForItem ( SolutionItem item ) : string
GetTypeGuidFromAlias ( string alias ) : string
GetUnknownProjectTypeInfo ( string guids, string fileName = null ) : MonoDevelop.Projects.Extensions.UnknownProjectTypeNode
HandleGlobalPropertyProviderChanged ( object sender, EventArgs e ) : void
HandlePropertyChanged ( object sender, MonoDevelop.Core.PropertyChangedEventArgs e ) : void
IsAbsoluteMSBuildPath ( string path ) : bool
IsKnownFlavorGuid ( string guid ) : bool
IsKnownTypeGuid ( string guid ) : bool
LoadExtensionData ( ) : void
MSBuildProjectService ( ) : System
MigrateFlavors ( MonoDevelop.Core.ProgressMonitor monitor, string fileName, string typeGuid, MonoDevelop.Projects.MSBuild.MSBuildProject p, List nodes ) : Task
MigrateProject ( MonoDevelop.Core.ProgressMonitor monitor, MonoDevelop.Projects.Extensions.SolutionItemExtensionNode st, MonoDevelop.Projects.MSBuild.MSBuildProject p, string fileName, string language ) : Task
OnExtensionChanged ( object sender, Mono.Addins.ExtensionEventArgs args ) : void
ReadGenericProjectType ( string file ) : string
RegisterCustomItemType ( MonoDevelop.Projects.Extensions.SolutionItemTypeNode node ) : void
RegisterCustomProjectItemType ( string name, Type type ) : void
ReleaseProjectBuilder ( RemoteBuildEngine engine ) : void
ToMSBuildPathRelative ( string baseDirectory, string absPath ) : string
UnregisterCustomItemType ( MonoDevelop.Projects.Extensions.SolutionItemTypeNode node ) : void
UnregisterCustomProjectItemType ( string name ) : void

Method Details

CheckHandlerUsesMSBuildEngine() public static method

public static CheckHandlerUsesMSBuildEngine ( MonoDevelop.Projects.SolutionFolderItem item, bool &useByDefault, bool &require ) : void
item MonoDevelop.Projects.SolutionFolderItem
useByDefault bool
require bool
return void

ConvertTypeAliasToGuid() public static method

public static ConvertTypeAliasToGuid ( string type ) : string
type string
return string

ConvertTypeAliasesToGuids() public static method

public static ConvertTypeAliasesToGuids ( string types ) : string[]
types string
return string[]

EscapeString() public static method

public static EscapeString ( string str ) : string
str string
return string

FromMSBuildPath() public static method

public static FromMSBuildPath ( string basePath, string relPath ) : string
basePath string
relPath string
return string

IsTargetsAvailable() public static method

public static IsTargetsAvailable ( string targetsPath ) : bool
targetsPath string
return bool

LoadItem() public static method

Loads a solution item
public static LoadItem ( MonoDevelop.Core.ProgressMonitor monitor, string fileName, MonoDevelop.Projects.MSBuild.MSBuildFileFormat expectedFormat, string typeGuid, string itemGuid, SolutionLoadContext ctx ) : Task
monitor MonoDevelop.Core.ProgressMonitor Progress monitor
fileName string File path to the item file
expectedFormat MonoDevelop.Projects.MSBuild.MSBuildFileFormat File format that the project should have
typeGuid string Optional item type GUID. If not provided, the type is guessed from the file extension.
itemGuid string Optional item Id
ctx SolutionLoadContext Optional solution context
return Task

RegisterGenericProjectType() public static method

public static RegisterGenericProjectType ( string projectId, Type type ) : void
projectId string
type System.Type
return void

ToMSBuildPath() public static method

public static ToMSBuildPath ( string baseDirectory, string absPath, bool normalize = true ) : string
baseDirectory string
absPath string
normalize bool
return string

TrySplitResourceName() public static method

public static TrySplitResourceName ( string fname, string &only_filename, string &culture, string &extn ) : bool
fname string
only_filename string
culture string
extn string
return bool

UnescapePath() public static method

public static UnescapePath ( string path ) : string
path string
return string

UnscapeString() public static method

public static UnscapeString ( string str ) : string
str string
return string