C# Class NAnt.VSNet.AssemblyReferenceBase

Inheritance: FileReferenceBase
Exibir arquivo Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
CreateProjectReference ( ProjectBase project ) : ProjectReferenceBase
GetAssemblyReferences ( NAnt.VSNet.Configuration solutionConfiguration ) : StringCollection

Gets the complete set of assemblies that need to be referenced when a project references this component.

GetOutputFiles ( NAnt.VSNet.Configuration solutionConfiguration, Hashtable outputFiles ) : void

Gets the complete set of output files for the referenced project.

The key of the case-insensitive Hashtable is the full path of the output file and the value is the path relative to the output directory.

GetPrimaryOutputFile ( NAnt.VSNet.Configuration solutionConfiguration ) : string

Gets the path of the reference, without taking the "copy local" setting into consideration.

GetTimestamp ( NAnt.VSNet.Configuration solutionConfiguration ) : System.DateTime

Gets the timestamp of the reference.

Protected Methods

Method Description
AssemblyReferenceBase ( XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, GacCache gacCache ) : System
ResolveAssemblyReference ( ) : string

Resolves an assembly reference.

ResolveFromAssemblyFolders ( XmlElement referenceElement, string fileName ) : string
ResolveFromFolderList ( StringCollection folderList, string fileName ) : string

Searches for the given file in all paths in folderList.

ResolveFromFramework ( string fileName ) : string

Resolves an assembly reference in the framework assembly directory of the target framework.

ResolveFromRelativePath ( string relativePath ) : string

Resolves an assembly reference using a path relative to the project directory.

Method Details

AssemblyReferenceBase() protected method

protected AssemblyReferenceBase ( XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, GacCache gacCache ) : System
xmlDefinition System.Xml.XmlElement
referencesResolver ReferencesResolver
parent ProjectBase
gacCache NAnt.Core.Util.GacCache
return System

CreateProjectReference() public method

public CreateProjectReference ( ProjectBase project ) : ProjectReferenceBase
project ProjectBase
return ProjectReferenceBase

GetAssemblyReferences() public method

Gets the complete set of assemblies that need to be referenced when a project references this component.
public GetAssemblyReferences ( NAnt.VSNet.Configuration solutionConfiguration ) : StringCollection
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
return System.Collections.Specialized.StringCollection

GetOutputFiles() public method

Gets the complete set of output files for the referenced project.
The key of the case-insensitive Hashtable is the full path of the output file and the value is the path relative to the output directory.
public GetOutputFiles ( NAnt.VSNet.Configuration solutionConfiguration, Hashtable outputFiles ) : void
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
outputFiles System.Collections.Hashtable The set of output files to be updated.
return void

GetPrimaryOutputFile() public method

Gets the path of the reference, without taking the "copy local" setting into consideration.
public GetPrimaryOutputFile ( NAnt.VSNet.Configuration solutionConfiguration ) : string
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
return string

GetTimestamp() public method

Gets the timestamp of the reference.
public GetTimestamp ( NAnt.VSNet.Configuration solutionConfiguration ) : System.DateTime
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
return System.DateTime

ResolveAssemblyReference() protected abstract method

Resolves an assembly reference.
protected abstract ResolveAssemblyReference ( ) : string
return string

ResolveFromAssemblyFolders() protected method

protected ResolveFromAssemblyFolders ( XmlElement referenceElement, string fileName ) : string
referenceElement XmlElement
fileName string
return string

ResolveFromFolderList() protected method

Searches for the given file in all paths in folderList.
protected ResolveFromFolderList ( StringCollection folderList, string fileName ) : string
folderList StringCollection The folders to search.
fileName string The file to search for.
return string

ResolveFromFramework() protected method

Resolves an assembly reference in the framework assembly directory of the target framework.
protected ResolveFromFramework ( string fileName ) : string
fileName string The file to search for.
return string

ResolveFromRelativePath() protected method

Resolves an assembly reference using a path relative to the project directory.
protected ResolveFromRelativePath ( string relativePath ) : string
relativePath string
return string