C# 클래스 MonoDevelop.Projects.Project

상속: SolutionEntityItem
파일 보기 프로젝트 열기: LogosBible/monodevelop 1 사용 예제들

Private Properties

프로퍼티 타입 설명
NotifyFileAddedToProject void
NotifyFileChangedInProject void
NotifyFilePropertyChangedInProject void
NotifyFileRemovedFromProject void
NotifyFileRenamedInProject void
OnFileChanged void
ResolveDependencies void
UpdateDependency void
UsingMSBuildEngine bool

공개 메소드들

메소드 설명
AddDirectory ( string relativePath ) : ProjectFile

Adds a directory to the project.

The directory is created if it doesn't exist

AddFile ( string filename ) : ProjectFile

Adds a file to the project

AddFile ( string filename, string buildAction ) : ProjectFile

Adds a file to the project

AddFile ( ProjectFile projectFile ) : void

Adds a file to the project

AddFiles ( IEnumerable files ) : IEnumerable
AddFiles ( IEnumerable files, string buildAction ) : IEnumerable
CopySupportFiles ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void

Copies the support files to the output directory

Copies all support files to the output directory of the given configuration. Support files include: assembly references with the Local Copy flag, data files with the Copy to Output option, etc.

DeleteSupportFiles ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void

Removes all support files from the output directory

Deletes all support files from the output directory of the given configuration. Support files include: assembly references with the Local Copy flag, data files with the Copy to Output option, etc.

Dispose ( ) : void
GetBuildActions ( ) : string[]

Gets a list of build actions supported by this project

Common actions are grouped at the top, separated by a "--" entry *IF* there are more "uncommon" actions than "common" actions

GetDefaultBuildAction ( string fileName ) : string

Gets the default build action for a file

GetOutputFileName ( MonoDevelop.Projects.ConfigurationSelector configuration ) : FilePath

Gets the absolute path to the output file generated by this project.

GetOutputFiles ( MonoDevelop.Projects.ConfigurationSelector configuration ) : List

Gets a list of files generated when building this project

Returns a list of all files that are generated when this project is built, including: the generated binary, debug information files, satellite assemblies.

GetProjectFile ( string fileName ) : ProjectFile

Gets a project file.

GetSupportFileList ( MonoDevelop.Projects.ConfigurationSelector configuration ) : FileCopySet

Gets a list of files required to use the project output

Returns a list of all files that are required to use the project output binary, for example: data files with the Copy to Output option, debug information files, generated resource files, etc.

IsCompileable ( string fileName ) : bool

Determines whether the provided file can be as part of this project

IsFileInProject ( string fileName ) : bool

Determines whether a file belongs to this project

LoadProject ( string filename, IProgressMonitor monitor ) : Project

보호된 메소드들

메소드 설명
CheckNeedsBuild ( MonoDevelop.Projects.ConfigurationSelector configuration ) : bool

Checks if the project needs to be built

DoBuild ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : MonoDevelop.Projects.BuildResult

Builds the project.

This method is invoked to build the project. Support files such as files with the Copy to Output flag will be copied before calling this method.

DoClean ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
DoExecute ( IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : void

Executes the project

GetCommonBuildActions ( ) : IList

Gets a list of common build actions (common actions are shown first in the project build action list)

GetStandardBuildActions ( ) : IEnumerable

Gets a list of standard build actions.

OnBuild ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : MonoDevelop.Projects.BuildResult
OnClean ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
OnExecute ( IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
OnFileAddedToProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void

Raises the FileAddedToProject event.

OnFileChangedInProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void

Raises the FileChangedInProject event.

OnFilePropertyChangedInProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void

Raises the FilePropertyChangedInProject event.

OnFileRemovedFromProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void

Raises the FileRemovedFromProject event.

OnFileRenamedInProject ( MonoDevelop.Projects.ProjectFileRenamedEventArgs e ) : void

Raises the FileRenamedInProject event.

OnGetItemFiles ( bool includeReferencedFiles ) : List
OnGetLastBuildTime ( MonoDevelop.Projects.ConfigurationSelector configuration ) : System.DateTime
OnGetNeedsBuilding ( MonoDevelop.Projects.ConfigurationSelector configuration ) : bool
OnItemsAdded ( IEnumerable objs ) : void
OnItemsRemoved ( IEnumerable objs ) : void
PopulateOutputFileList ( List list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void

Gets a list of files retuired to use the project output

Returns a list of all files that are required to use the project output binary, for example: data files with the Copy to Output option, debug information files, generated resource files, etc.

PopulateSupportFileList ( FileCopySet list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void

Gets a list of files required to use the project output

Returns a list of all files that are required to use the project output binary, for example: data files with the Copy to Output option, debug information files, generated resource files, etc.

Project ( ) : System

비공개 메소드들

메소드 설명
NotifyFileAddedToProject ( IEnumerable objs ) : void
NotifyFileChangedInProject ( ProjectFile file ) : void
NotifyFilePropertyChangedInProject ( ProjectFile file, string property ) : void
NotifyFileRemovedFromProject ( IEnumerable objs ) : void
NotifyFileRenamedInProject ( MonoDevelop.Projects.ProjectFileRenamedEventArgs args ) : void
OnFileChanged ( object source, FileEventArgs e ) : void
ResolveDependencies ( ProjectFile file ) : void
UpdateDependency ( ProjectFile file, FilePath oldPath ) : void
UsingMSBuildEngine ( MonoDevelop.Projects.ConfigurationSelector sel ) : bool

메소드 상세

AddDirectory() 공개 메소드

Adds a directory to the project.
The directory is created if it doesn't exist
public AddDirectory ( string relativePath ) : ProjectFile
relativePath string /// Relative path of the directory. ///
리턴 ProjectFile

AddFile() 공개 메소드

Adds a file to the project
public AddFile ( string filename ) : ProjectFile
filename string /// Absolute path to the file. ///
리턴 ProjectFile

AddFile() 공개 메소드

Adds a file to the project
public AddFile ( string filename, string buildAction ) : ProjectFile
filename string /// Absolute path to the file. ///
buildAction string /// Build action to assign to the file. ///
리턴 ProjectFile

AddFile() 공개 메소드

Adds a file to the project
public AddFile ( ProjectFile projectFile ) : void
projectFile ProjectFile /// The file. ///
리턴 void

AddFiles() 공개 메소드

public AddFiles ( IEnumerable files ) : IEnumerable
files IEnumerable
리턴 IEnumerable

AddFiles() 공개 메소드

public AddFiles ( IEnumerable files, string buildAction ) : IEnumerable
files IEnumerable
buildAction string
리턴 IEnumerable

CheckNeedsBuild() 보호된 메소드

Checks if the project needs to be built
protected CheckNeedsBuild ( MonoDevelop.Projects.ConfigurationSelector configuration ) : bool
configuration MonoDevelop.Projects.ConfigurationSelector /// Build configuration. ///
리턴 bool

CopySupportFiles() 공개 메소드

Copies the support files to the output directory
Copies all support files to the output directory of the given configuration. Support files include: assembly references with the Local Copy flag, data files with the Copy to Output option, etc.
public CopySupportFiles ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
monitor IProgressMonitor /// Progress monitor. ///
configuration MonoDevelop.Projects.ConfigurationSelector /// Configuration for which to copy the files. ///
리턴 void

DeleteSupportFiles() 공개 메소드

Removes all support files from the output directory
Deletes all support files from the output directory of the given configuration. Support files include: assembly references with the Local Copy flag, data files with the Copy to Output option, etc.
public DeleteSupportFiles ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
monitor IProgressMonitor /// Progress monitor. ///
configuration MonoDevelop.Projects.ConfigurationSelector /// Configuration for which to delete the files. ///
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DoBuild() 보호된 메소드

Builds the project.
This method is invoked to build the project. Support files such as files with the Copy to Output flag will be copied before calling this method.
protected DoBuild ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : MonoDevelop.Projects.BuildResult
monitor IProgressMonitor /// Progress monitor. ///
configuration MonoDevelop.Projects.ConfigurationSelector /// Configuration to build. ///
리턴 MonoDevelop.Projects.BuildResult

DoClean() 보호된 메소드

protected DoClean ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
monitor IProgressMonitor
configuration MonoDevelop.Projects.ConfigurationSelector
리턴 void

DoExecute() 보호된 메소드

Executes the project
protected DoExecute ( IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
monitor IProgressMonitor /// Progress monitor. ///
context MonoDevelop.Projects.ExecutionContext /// Execution context. ///
configuration MonoDevelop.Projects.ConfigurationSelector /// Configuration to execute. ///
리턴 void

GetBuildActions() 공개 메소드

Gets a list of build actions supported by this project
Common actions are grouped at the top, separated by a "--" entry *IF* there are more "uncommon" actions than "common" actions
public GetBuildActions ( ) : string[]
리턴 string[]

GetCommonBuildActions() 보호된 메소드

Gets a list of common build actions (common actions are shown first in the project build action list)
protected GetCommonBuildActions ( ) : IList
리턴 IList

GetDefaultBuildAction() 공개 메소드

Gets the default build action for a file
public GetDefaultBuildAction ( string fileName ) : string
fileName string /// File name. ///
리턴 string

GetOutputFileName() 공개 메소드

Gets the absolute path to the output file generated by this project.
public GetOutputFileName ( MonoDevelop.Projects.ConfigurationSelector configuration ) : FilePath
configuration MonoDevelop.Projects.ConfigurationSelector /// Build configuration. ///
리턴 FilePath

GetOutputFiles() 공개 메소드

Gets a list of files generated when building this project
Returns a list of all files that are generated when this project is built, including: the generated binary, debug information files, satellite assemblies.
public GetOutputFiles ( MonoDevelop.Projects.ConfigurationSelector configuration ) : List
configuration MonoDevelop.Projects.ConfigurationSelector /// Build configuration for which get the list ///
리턴 List

GetProjectFile() 공개 메소드

Gets a project file.
public GetProjectFile ( string fileName ) : ProjectFile
fileName string /// File name. ///
리턴 ProjectFile

GetStandardBuildActions() 보호된 메소드

Gets a list of standard build actions.
protected GetStandardBuildActions ( ) : IEnumerable
리턴 IEnumerable

GetSupportFileList() 공개 메소드

Gets a list of files required to use the project output
Returns a list of all files that are required to use the project output binary, for example: data files with the Copy to Output option, debug information files, generated resource files, etc.
public GetSupportFileList ( MonoDevelop.Projects.ConfigurationSelector configuration ) : FileCopySet
configuration MonoDevelop.Projects.ConfigurationSelector /// Build configuration for which get the list ///
리턴 FileCopySet

IsCompileable() 공개 메소드

Determines whether the provided file can be as part of this project
public IsCompileable ( string fileName ) : bool
fileName string /// File name ///
리턴 bool

IsFileInProject() 공개 메소드

Determines whether a file belongs to this project
public IsFileInProject ( string fileName ) : bool
fileName string /// File name ///
리턴 bool

LoadProject() 공개 정적인 메소드

public static LoadProject ( string filename, IProgressMonitor monitor ) : Project
filename string
monitor IProgressMonitor
리턴 Project

OnBuild() 보호된 메소드

protected OnBuild ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : MonoDevelop.Projects.BuildResult
monitor IProgressMonitor
configuration MonoDevelop.Projects.ConfigurationSelector
리턴 MonoDevelop.Projects.BuildResult

OnClean() 보호된 메소드

protected OnClean ( IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
monitor IProgressMonitor
configuration MonoDevelop.Projects.ConfigurationSelector
리턴 void

OnExecute() 보호된 메소드

protected OnExecute ( IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
monitor IProgressMonitor
context MonoDevelop.Projects.ExecutionContext
configuration MonoDevelop.Projects.ConfigurationSelector
리턴 void

OnFileAddedToProject() 보호된 메소드

Raises the FileAddedToProject event.
protected OnFileAddedToProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void
e MonoDevelop.Projects.ProjectFileEventArgs
리턴 void

OnFileChangedInProject() 보호된 메소드

Raises the FileChangedInProject event.
protected OnFileChangedInProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void
e MonoDevelop.Projects.ProjectFileEventArgs
리턴 void

OnFilePropertyChangedInProject() 보호된 메소드

Raises the FilePropertyChangedInProject event.
protected OnFilePropertyChangedInProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void
e MonoDevelop.Projects.ProjectFileEventArgs
리턴 void

OnFileRemovedFromProject() 보호된 메소드

Raises the FileRemovedFromProject event.
protected OnFileRemovedFromProject ( MonoDevelop.Projects.ProjectFileEventArgs e ) : void
e MonoDevelop.Projects.ProjectFileEventArgs
리턴 void

OnFileRenamedInProject() 보호된 메소드

Raises the FileRenamedInProject event.
protected OnFileRenamedInProject ( MonoDevelop.Projects.ProjectFileRenamedEventArgs e ) : void
e MonoDevelop.Projects.ProjectFileRenamedEventArgs
리턴 void

OnGetItemFiles() 보호된 메소드

protected OnGetItemFiles ( bool includeReferencedFiles ) : List
includeReferencedFiles bool
리턴 List

OnGetLastBuildTime() 보호된 메소드

protected OnGetLastBuildTime ( MonoDevelop.Projects.ConfigurationSelector configuration ) : System.DateTime
configuration MonoDevelop.Projects.ConfigurationSelector
리턴 System.DateTime

OnGetNeedsBuilding() 보호된 메소드

protected OnGetNeedsBuilding ( MonoDevelop.Projects.ConfigurationSelector configuration ) : bool
configuration MonoDevelop.Projects.ConfigurationSelector
리턴 bool

OnItemsAdded() 보호된 메소드

protected OnItemsAdded ( IEnumerable objs ) : void
objs IEnumerable
리턴 void

OnItemsRemoved() 보호된 메소드

protected OnItemsRemoved ( IEnumerable objs ) : void
objs IEnumerable
리턴 void

PopulateOutputFileList() 보호된 메소드

Gets a list of files retuired to use the project output
Returns a list of all files that are required to use the project output binary, for example: data files with the Copy to Output option, debug information files, generated resource files, etc.
protected PopulateOutputFileList ( List list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
list List /// List where to add the support files. ///
configuration MonoDevelop.Projects.ConfigurationSelector /// Build configuration for which get the list ///
리턴 void

PopulateSupportFileList() 보호된 메소드

Gets a list of files required to use the project output
Returns a list of all files that are required to use the project output binary, for example: data files with the Copy to Output option, debug information files, generated resource files, etc.
protected PopulateSupportFileList ( FileCopySet list, MonoDevelop.Projects.ConfigurationSelector configuration ) : void
list FileCopySet /// List where to add the support files. ///
configuration MonoDevelop.Projects.ConfigurationSelector /// Build configuration for which get the list ///
리턴 void

Project() 보호된 메소드

protected Project ( ) : System
리턴 System