C# Класс MonoDevelop.Projects.MSBuild.MSBuildProjectService

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CheckHandlerUsesMSBuildEngine() публичный статический Метод

public static CheckHandlerUsesMSBuildEngine ( MonoDevelop.Projects.SolutionFolderItem item, bool &useByDefault, bool &require ) : void
item MonoDevelop.Projects.SolutionFolderItem
useByDefault bool
require bool
Результат void

ConvertTypeAliasToGuid() публичный статический Метод

public static ConvertTypeAliasToGuid ( string type ) : string
type string
Результат string

ConvertTypeAliasesToGuids() публичный статический Метод

public static ConvertTypeAliasesToGuids ( string types ) : string[]
types string
Результат string[]

EscapeString() публичный статический Метод

public static EscapeString ( string str ) : string
str string
Результат string

FromMSBuildPath() публичный статический Метод

public static FromMSBuildPath ( string basePath, string relPath ) : string
basePath string
relPath string
Результат string

IsTargetsAvailable() публичный статический Метод

public static IsTargetsAvailable ( string targetsPath ) : bool
targetsPath string
Результат bool

LoadItem() публичный статический Метод

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
Результат Task

RegisterGenericProjectType() публичный статический Метод

public static RegisterGenericProjectType ( string projectId, Type type ) : void
projectId string
type System.Type
Результат void

ToMSBuildPath() публичный статический Метод

public static ToMSBuildPath ( string baseDirectory, string absPath, bool normalize = true ) : string
baseDirectory string
absPath string
normalize bool
Результат string

TrySplitResourceName() публичный статический Метод

public static TrySplitResourceName ( string fname, string &only_filename, string &culture, string &extn ) : bool
fname string
only_filename string
culture string
extn string
Результат bool

UnescapePath() публичный статический Метод

public static UnescapePath ( string path ) : string
path string
Результат string

UnscapeString() публичный статический Метод

public static UnscapeString ( string str ) : string
str string
Результат string