C# Class NAnt.VSNet.SolutionBase

显示文件 Open project: skolima/NAnt Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

public Compile ( NAnt.VSNet.Configuration solutionConfiguration ) : bool
solutionConfiguration NAnt.VSNet.Configuration
return bool

CreateProjectDoesNotExistException() protected method

protected CreateProjectDoesNotExistException ( string projectPath ) : BuildException
projectPath string
return NAnt.Core.BuildException

FixProjectReferences() protected method

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.
return bool

GetDependenciesFromProjects() protected method

protected GetDependenciesFromProjects ( NAnt.VSNet.Configuration solutionConfiguration ) : void
solutionConfiguration NAnt.VSNet.Configuration
return void

GetProjectFileFromGuid() public method

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.
return string

GetProjectFromGuid() public method

public GetProjectFromGuid ( string projectGuid ) : ProjectBase
projectGuid string
return ProjectBase

LoadProjectGuids() protected method

protected LoadProjectGuids ( ArrayList projects, bool isReferenceProject ) : void
projects System.Collections.ArrayList
isReferenceProject bool
return void

LoadProjects() protected method

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
return void

Log() protected method

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.
return void

RecursiveLoadTemplateProject() public method

public RecursiveLoadTemplateProject ( string fileName ) : void
fileName string
return void

SetProjectBuildConfiguration() protected method

protected SetProjectBuildConfiguration ( NAnt.VSNet.ProjectEntry projectEntry ) : void
projectEntry NAnt.VSNet.ProjectEntry
return void

SolutionBase() protected method

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
return System

TranslateProjectPath() protected method

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.
return string