C# Класс NAnt.VSNet.SolutionBase

Показать файл Открыть проект Примеры использования класса

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

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

Защищенные методы

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

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

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

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

Compile() публичный Метод

public Compile ( NAnt.VSNet.Configuration solutionConfiguration ) : bool
solutionConfiguration NAnt.VSNet.Configuration
Результат bool

CreateProjectDoesNotExistException() защищенный Метод

protected CreateProjectDoesNotExistException ( string projectPath ) : BuildException
projectPath string
Результат NAnt.Core.BuildException

FixProjectReferences() защищенный Метод

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

GetDependenciesFromProjects() защищенный Метод

protected GetDependenciesFromProjects ( NAnt.VSNet.Configuration solutionConfiguration ) : void
solutionConfiguration NAnt.VSNet.Configuration
Результат void

GetProjectFileFromGuid() публичный Метод

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

GetProjectFromGuid() публичный Метод

public GetProjectFromGuid ( string projectGuid ) : ProjectBase
projectGuid string
Результат ProjectBase

LoadProjectGuids() защищенный Метод

protected LoadProjectGuids ( ArrayList projects, bool isReferenceProject ) : void
projects System.Collections.ArrayList
isReferenceProject bool
Результат void

LoadProjects() защищенный Метод

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

Log() защищенный Метод

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

RecursiveLoadTemplateProject() публичный Метод

public RecursiveLoadTemplateProject ( string fileName ) : void
fileName string
Результат void

SetProjectBuildConfiguration() защищенный Метод

protected SetProjectBuildConfiguration ( NAnt.VSNet.ProjectEntry projectEntry ) : void
projectEntry NAnt.VSNet.ProjectEntry
Результат void

SolutionBase() защищенный Метод

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

TranslateProjectPath() защищенный Метод

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