C# Class NAnt.VSNet.WrapperReferenceBase

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

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
GetPrimaryInteropAssembly ( ) : string
GetTypeLibrary ( ) : string
GetTypeLibraryName ( string typeLibraryPath ) : string
ImportActiveXLibrary ( ) : void
ImportTypeLibrary ( ) : void
ResolveWrapperAssembly ( ) : string
WrapperReferenceBase ( XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, GacCache gacCache ) : System.Runtime.InteropServices.ComTypes

Private Methods

Méthode Description
CreateInvalidTypeLibraryRegistrationException ( ) : BuildException
CreateTypeLibraryNotRegisteredException ( ) : BuildException
CreateTypeLibraryPathDoesNotExistException ( string typeLibraryPath ) : BuildException
CreateWrapper ( NAnt.VSNet.ConfigurationBase config ) : string
LoadTypeLibEx ( string strTypeLibName, int regKind, [ typeLib ) : void
Sync ( NAnt.VSNet.ConfigurationBase config ) : void

Removes wrapper assembly from build directory, if wrapper assembly no longer exists in output directory or is not in sync with build directory, to force rebuild.

Method Details

GetAssemblyReferences() public méthode

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.
Résultat System.Collections.Specialized.StringCollection

GetOutputFiles() public méthode

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.
Résultat void

GetPrimaryInteropAssembly() protected méthode

protected GetPrimaryInteropAssembly ( ) : string
Résultat string

GetPrimaryOutputFile() public méthode

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.
Résultat string

GetTimestamp() public méthode

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

GetTypeLibrary() protected méthode

protected GetTypeLibrary ( ) : string
Résultat string

GetTypeLibraryName() protected méthode

protected GetTypeLibraryName ( string typeLibraryPath ) : string
typeLibraryPath string
Résultat string

ImportActiveXLibrary() protected abstract méthode

protected abstract ImportActiveXLibrary ( ) : void
Résultat void

ImportTypeLibrary() protected abstract méthode

protected abstract ImportTypeLibrary ( ) : void
Résultat void

ResolveWrapperAssembly() protected méthode

protected ResolveWrapperAssembly ( ) : string
Résultat string

WrapperReferenceBase() protected méthode

protected WrapperReferenceBase ( XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, GacCache gacCache ) : System.Runtime.InteropServices.ComTypes
xmlDefinition System.Xml.XmlElement
referencesResolver ReferencesResolver
parent ProjectBase
gacCache NAnt.Core.Util.GacCache
Résultat System.Runtime.InteropServices.ComTypes