C# Class NAnt.VSNet.SolutionBase

Afficher le fichier Open project: skolima/NAnt Class Usage Examples

Méthodes publiques

Méthode Description
Compile ( NAnt.VSNet.Configuration solutionConfiguration ) : bool
GetProjectFileFromGuid ( string projectGuid ) : string

Gets the project file of the project with the given unique identifier.

GetProjectFromGuid ( string projectGuid ) : ProjectBase
RecursiveLoadTemplateProject ( string fileName ) : void

Méthodes protégées

Méthode Description
CreateProjectDoesNotExistException ( string projectPath ) : BuildException
FixProjectReferences ( ProjectBase project, NAnt.VSNet.Configuration solutionConfiguration, Hashtable builtProjects, Hashtable failedProjects ) : bool

Converts assembly references to projects to project references, adding a build dependency.c

GetDependenciesFromProjects ( NAnt.VSNet.Configuration solutionConfiguration ) : void
LoadProjectGuids ( ArrayList projects, bool isReferenceProject ) : void
LoadProjects ( GacCache gacCache, ReferencesResolver refResolver, Hashtable explicitProjectDependencies ) : void

Loads the projects from the file system and stores them in an instance variable.

Log ( Level messageLevel, string message ) : void

Logs a message with the given priority.

The actual logging is delegated to the underlying task.

SetProjectBuildConfiguration ( NAnt.VSNet.ProjectEntry projectEntry ) : void
SolutionBase ( NAnt.VSNet.Tasks.SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver ) : System
TranslateProjectPath ( string solutionDir, string projectPath ) : string

Translates a project path, in the form of a relative file path or a URL, to an absolute file path.

Private Methods

Méthode Description
FindGuidFromPath ( string projectPath ) : string
HasDirtyProjectDependency ( ProjectBase project, Hashtable builtProjects ) : bool

Determines whether any of the project dependencies of the specified project still needs to be built.

SolutionBase ( TempFileCollection tfc, NAnt.VSNet.Tasks.SolutionTask solutionTask ) : System

Method Details

Compile() public méthode

public Compile ( NAnt.VSNet.Configuration solutionConfiguration ) : bool
solutionConfiguration NAnt.VSNet.Configuration
Résultat bool

CreateProjectDoesNotExistException() protected méthode

protected CreateProjectDoesNotExistException ( string projectPath ) : BuildException
projectPath string
Résultat NAnt.Core.BuildException

FixProjectReferences() protected méthode

Converts assembly references to projects to project references, adding a build dependency.c
protected FixProjectReferences ( ProjectBase project, NAnt.VSNet.Configuration solutionConfiguration, Hashtable builtProjects, Hashtable failedProjects ) : bool
project ProjectBase The to analyze.
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
builtProjects System.Collections.Hashtable containing list of projects that have been built.
failedProjects System.Collections.Hashtable containing list of projects that failed to build.
Résultat bool

GetDependenciesFromProjects() protected méthode

protected GetDependenciesFromProjects ( NAnt.VSNet.Configuration solutionConfiguration ) : void
solutionConfiguration NAnt.VSNet.Configuration
Résultat void

GetProjectFileFromGuid() public méthode

Gets the project file of the project with the given unique identifier.
No project with unique identifier could be located.
public GetProjectFileFromGuid ( string projectGuid ) : string
projectGuid string The unique identifier of the project for which the project file should be retrieves.
Résultat string

GetProjectFromGuid() public méthode

public GetProjectFromGuid ( string projectGuid ) : ProjectBase
projectGuid string
Résultat ProjectBase

LoadProjectGuids() protected méthode

protected LoadProjectGuids ( ArrayList projects, bool isReferenceProject ) : void
projects System.Collections.ArrayList
isReferenceProject bool
Résultat void

LoadProjects() protected méthode

Loads the projects from the file system and stores them in an instance variable.
A project GUID in the solution file does not match the actual GUID of the project in the project file.
protected LoadProjects ( GacCache gacCache, ReferencesResolver refResolver, Hashtable explicitProjectDependencies ) : void
gacCache NAnt.Core.Util.GacCache instance to use to determine whether an assembly is located in the Global Assembly Cache.
refResolver ReferencesResolver instance to use to determine location and references of assemblies.
explicitProjectDependencies System.Collections.Hashtable TODO
Résultat void

Log() protected méthode

Logs a message with the given priority.
The actual logging is delegated to the underlying task.
protected Log ( Level messageLevel, string message ) : void
messageLevel Level The message priority at which the specified message is to be logged.
message string The message to be logged.
Résultat void

RecursiveLoadTemplateProject() public méthode

public RecursiveLoadTemplateProject ( string fileName ) : void
fileName string
Résultat void

SetProjectBuildConfiguration() protected méthode

protected SetProjectBuildConfiguration ( NAnt.VSNet.ProjectEntry projectEntry ) : void
projectEntry NAnt.VSNet.ProjectEntry
Résultat void

SolutionBase() protected méthode

protected SolutionBase ( NAnt.VSNet.Tasks.SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver ) : System
solutionTask NAnt.VSNet.Tasks.SolutionTask
tfc System.CodeDom.Compiler.TempFileCollection
gacCache NAnt.Core.Util.GacCache
refResolver ReferencesResolver
Résultat System

TranslateProjectPath() protected méthode

Translates a project path, in the form of a relative file path or a URL, to an absolute file path.
protected TranslateProjectPath ( string solutionDir, string projectPath ) : string
solutionDir string The directory of the solution.
projectPath string The project path to translate to an absolute file path.
Résultat string