C# Class MonoDevelop.Projects.DotNetProject

Inheritance: Project, IAssemblyProject
Afficher le fichier Open project: LogosBible/monodevelop Class Usage Examples

Protected Properties

Свойство Type Description
projectReferences ProjectReferenceCollection

Private Properties

Свойство Type Description
CheckReferenceChange void
FindLanguage IDotNetLanguageBinding
GetAssemblyRefsRec IEnumerable
GetHierarchicalNamespace string
GetResourceCulture string
GetTargetFrameworkForNewProject MonoDevelop.Core.Assemblies.TargetFramework
MigrateResourceIds void
NotifyReferenceAddedToProject void
NotifyReferenceRemovedFromProject void
OnFileChanged void
OnFileRemoved void
PopulateSupportFileListInternal void
RenameReferences void
RuntimeSystemAssemblyServiceDefaultRuntimeChanged void
SanitisePotentialNamespace string
SetItemHandler void
UpdateSystemReferences void

Méthodes publiques

Méthode Description
AddReference ( string filename ) : MonoDevelop.Projects.ProjectReference
CanReferenceProject ( DotNetProject targetProject, string &reason ) : bool
CreateConfiguration ( string name ) : MonoDevelop.Projects.SolutionItemConfiguration
Dispose ( ) : void
DotNetProject ( ) : System
DotNetProject ( string languageName ) : System
DotNetProject ( string languageName, MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo, XmlElement projectOptions ) : System
GetDefaultNamespace ( string fileName ) : string

Gets the default namespace for the file, according to the naming policy.

Always returns a valid namespace, even if the fileName is null.

GetDefaultTargetFrameworkForFormat ( MonoDevelop.Projects.FileFormat format ) : TargetFrameworkMoniker

Returns the default framework for a given format

This method is used to determine what's the correct target framework for a project deserialized using a specific format.

GetDefaultTargetFrameworkId ( ) : TargetFrameworkMoniker

Gets the target framework for new projects

GetOutputFileName ( MonoDevelop.Projects.ConfigurationSelector configuration ) : FilePath
GetReferencedAssemblies ( MonoDevelop.Projects.ConfigurationSelector configuration ) : IEnumerable

Returns all assemblies referenced by this project, including assemblies generated by referenced projects.

GetReferencedAssemblies ( MonoDevelop.Projects.ConfigurationSelector configuration, bool includeProjectReferences ) : IEnumerable

Returns all assemblies referenced by this project.

GetReferencedItems ( MonoDevelop.Projects.ConfigurationSelector configuration ) : IEnumerable
GetUserAssemblyPaths ( MonoDevelop.Projects.ConfigurationSelector configuration ) : IList
IsCompileable ( string fileName ) : bool
StripImplicitNamespace ( string ns ) : string

Given a namespace, removes from it the implicit namespace of the project, if there is one. This depends on the target language. For example, in VB.NET the default namespace is implicit.

SupportsFramework ( MonoDevelop.Core.Assemblies.TargetFramework framework ) : bool
UpdateResourceHandler ( bool keepOldIds ) : void

Méthodes protégées

Méthode Description
CheckNeedsBuild ( MonoDevelop.Projects.ConfigurationSelector configuration ) : bool
CreateExecutionCommand ( MonoDevelop.Projects.ConfigurationSelector configSel, DotNetProjectConfiguration configuration ) : MonoDevelop.Core.Execution.ExecutionCommand
DoExecute ( IProgressMonitor monitor, ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
GetCommonBuildActions ( ) : IList
GetDefaultTargetPlatform ( MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo ) : string
GetStandardBuildActions ( ) : IEnumerable
OnEndLoad ( ) : void
OnGetCanExecute ( ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : bool
OnGetItemFiles ( bool includeReferencedFiles ) : List
OnGetLastBuildTime ( MonoDevelop.Projects.ConfigurationSelector configuration ) : System.DateTime
OnGetReferencedAssemblies ( MonoDevelop.Projects.ConfigurationSelector configuration, bool includeProjectReferences ) : IEnumerable
OnItemsAdded ( IEnumerable objs ) : void
OnItemsRemoved ( IEnumerable objs ) : void
OnReferenceAddedToProject ( MonoDevelop.Projects.ProjectReferenceEventArgs e ) : void
OnReferenceRemovedFromProject ( MonoDevelop.Projects.ProjectReferenceEventArgs e ) : void
OnSave ( IProgressMonitor monitor ) : void
PopulateOutputFileList ( List list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
PopulateSupportFileList ( FileCopySet list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void

Private Methods

Méthode Description
CheckReferenceChange ( string updatedFile ) : void
FindLanguage ( string name ) : IDotNetLanguageBinding
GetAssemblyRefsRec ( string fileName, HashSet visited ) : IEnumerable
GetHierarchicalNamespace ( string relativePath ) : string
GetResourceCulture ( string fname ) : string
GetTargetFrameworkForNewProject ( XmlElement projectOptions, TargetFrameworkMoniker defaultMoniker ) : MonoDevelop.Core.Assemblies.TargetFramework
MigrateResourceIds ( IResourceHandler oldHandler, IResourceHandler newHandler ) : void
NotifyReferenceAddedToProject ( MonoDevelop.Projects.ProjectReference reference ) : void
NotifyReferenceRemovedFromProject ( MonoDevelop.Projects.ProjectReference reference ) : void
OnFileChanged ( object source, MonoDevelop e ) : void
OnFileRemoved ( Object o, FileEventArgs e ) : void
PopulateSupportFileListInternal ( FileCopySet list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
RenameReferences ( string oldName, string newName ) : void
RuntimeSystemAssemblyServiceDefaultRuntimeChanged ( object sender, EventArgs e ) : void
SanitisePotentialNamespace ( string potential ) : string
SetItemHandler ( ISolutionItemHandler handler ) : void
UpdateSystemReferences ( ) : void

Method Details

AddReference() public méthode

public AddReference ( string filename ) : MonoDevelop.Projects.ProjectReference
filename string
Résultat MonoDevelop.Projects.ProjectReference

CanReferenceProject() public méthode

public CanReferenceProject ( DotNetProject targetProject, string &reason ) : bool
targetProject DotNetProject
reason string
Résultat bool

CheckNeedsBuild() protected méthode

protected CheckNeedsBuild ( MonoDevelop.Projects.ConfigurationSelector configuration ) : bool
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat bool

CreateConfiguration() public méthode

public CreateConfiguration ( string name ) : MonoDevelop.Projects.SolutionItemConfiguration
name string
Résultat MonoDevelop.Projects.SolutionItemConfiguration

CreateExecutionCommand() protected méthode

protected CreateExecutionCommand ( MonoDevelop.Projects.ConfigurationSelector configSel, DotNetProjectConfiguration configuration ) : MonoDevelop.Core.Execution.ExecutionCommand
configSel MonoDevelop.Projects.ConfigurationSelector
configuration DotNetProjectConfiguration
Résultat MonoDevelop.Core.Execution.ExecutionCommand

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DoExecute() protected méthode

protected DoExecute ( IProgressMonitor monitor, ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
monitor IProgressMonitor
context ExecutionContext
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat void

DotNetProject() public méthode

public DotNetProject ( ) : System
Résultat System

DotNetProject() public méthode

public DotNetProject ( string languageName ) : System
languageName string
Résultat System

DotNetProject() public méthode

public DotNetProject ( string languageName, MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo, XmlElement projectOptions ) : System
languageName string
projectCreateInfo MonoDevelop.Projects.ProjectCreateInformation
projectOptions System.Xml.XmlElement
Résultat System

GetCommonBuildActions() protected méthode

protected GetCommonBuildActions ( ) : IList
Résultat IList

GetDefaultNamespace() public méthode

Gets the default namespace for the file, according to the naming policy.
Always returns a valid namespace, even if the fileName is null.
public GetDefaultNamespace ( string fileName ) : string
fileName string
Résultat string

GetDefaultTargetFrameworkForFormat() public méthode

Returns the default framework for a given format
This method is used to determine what's the correct target framework for a project deserialized using a specific format.
public GetDefaultTargetFrameworkForFormat ( MonoDevelop.Projects.FileFormat format ) : TargetFrameworkMoniker
format MonoDevelop.Projects.FileFormat /// A format ///
Résultat TargetFrameworkMoniker

GetDefaultTargetFrameworkId() public méthode

Gets the target framework for new projects
public GetDefaultTargetFrameworkId ( ) : TargetFrameworkMoniker
Résultat TargetFrameworkMoniker

GetDefaultTargetPlatform() protected méthode

protected GetDefaultTargetPlatform ( MonoDevelop.Projects.ProjectCreateInformation projectCreateInfo ) : string
projectCreateInfo MonoDevelop.Projects.ProjectCreateInformation
Résultat string

GetOutputFileName() public méthode

public GetOutputFileName ( MonoDevelop.Projects.ConfigurationSelector configuration ) : FilePath
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat FilePath

GetReferencedAssemblies() public méthode

Returns all assemblies referenced by this project, including assemblies generated by referenced projects.
public GetReferencedAssemblies ( MonoDevelop.Projects.ConfigurationSelector configuration ) : IEnumerable
configuration MonoDevelop.Projects.ConfigurationSelector /// Configuration for which to get the assemblies. ///
Résultat IEnumerable

GetReferencedAssemblies() public méthode

Returns all assemblies referenced by this project.
public GetReferencedAssemblies ( MonoDevelop.Projects.ConfigurationSelector configuration, bool includeProjectReferences ) : IEnumerable
configuration MonoDevelop.Projects.ConfigurationSelector /// Configuration for which to get the assemblies. ///
includeProjectReferences bool /// When set to true, it will include assemblies generated by referenced project. When set to false, /// it will only include package and direct assembly references. ///
Résultat IEnumerable

GetReferencedItems() public méthode

public GetReferencedItems ( MonoDevelop.Projects.ConfigurationSelector configuration ) : IEnumerable
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat IEnumerable

GetStandardBuildActions() protected méthode

protected GetStandardBuildActions ( ) : IEnumerable
Résultat IEnumerable

GetUserAssemblyPaths() public méthode

public GetUserAssemblyPaths ( MonoDevelop.Projects.ConfigurationSelector configuration ) : IList
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat IList

IsCompileable() public méthode

public IsCompileable ( string fileName ) : bool
fileName string
Résultat bool

OnEndLoad() protected méthode

protected OnEndLoad ( ) : void
Résultat void

OnGetCanExecute() protected méthode

protected OnGetCanExecute ( ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : bool
context ExecutionContext
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat bool

OnGetItemFiles() protected méthode

protected OnGetItemFiles ( bool includeReferencedFiles ) : List
includeReferencedFiles bool
Résultat List

OnGetLastBuildTime() protected méthode

protected OnGetLastBuildTime ( MonoDevelop.Projects.ConfigurationSelector configuration ) : System.DateTime
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat System.DateTime

OnGetReferencedAssemblies() protected méthode

protected OnGetReferencedAssemblies ( MonoDevelop.Projects.ConfigurationSelector configuration, bool includeProjectReferences ) : IEnumerable
configuration MonoDevelop.Projects.ConfigurationSelector
includeProjectReferences bool
Résultat IEnumerable

OnItemsAdded() protected méthode

protected OnItemsAdded ( IEnumerable objs ) : void
objs IEnumerable
Résultat void

OnItemsRemoved() protected méthode

protected OnItemsRemoved ( IEnumerable objs ) : void
objs IEnumerable
Résultat void

OnReferenceAddedToProject() protected méthode

protected OnReferenceAddedToProject ( MonoDevelop.Projects.ProjectReferenceEventArgs e ) : void
e MonoDevelop.Projects.ProjectReferenceEventArgs
Résultat void

OnReferenceRemovedFromProject() protected méthode

protected OnReferenceRemovedFromProject ( MonoDevelop.Projects.ProjectReferenceEventArgs e ) : void
e MonoDevelop.Projects.ProjectReferenceEventArgs
Résultat void

OnSave() protected méthode

protected OnSave ( IProgressMonitor monitor ) : void
monitor IProgressMonitor
Résultat void

PopulateOutputFileList() protected méthode

protected PopulateOutputFileList ( List list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
list List
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat void

PopulateSupportFileList() protected méthode

protected PopulateSupportFileList ( FileCopySet list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
list FileCopySet
configuration MonoDevelop.Projects.ConfigurationSelector
Résultat void

StripImplicitNamespace() public méthode

Given a namespace, removes from it the implicit namespace of the project, if there is one. This depends on the target language. For example, in VB.NET the default namespace is implicit.
public StripImplicitNamespace ( string ns ) : string
ns string
Résultat string

SupportsFramework() public méthode

public SupportsFramework ( MonoDevelop.Core.Assemblies.TargetFramework framework ) : bool
framework MonoDevelop.Core.Assemblies.TargetFramework
Résultat bool

UpdateResourceHandler() public méthode

public UpdateResourceHandler ( bool keepOldIds ) : void
keepOldIds bool
Résultat void

Property Details

projectReferences protected_oe property

protected ProjectReferenceCollection projectReferences
Résultat ProjectReferenceCollection