C# Class NAnt.VSNet.WrapperReferenceBase

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

Public Methods

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

Protected Methods

Method 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

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

GetPrimaryInteropAssembly() protected method

protected GetPrimaryInteropAssembly ( ) : string
return string

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

GetTypeLibrary() protected method

protected GetTypeLibrary ( ) : string
return string

GetTypeLibraryName() protected method

protected GetTypeLibraryName ( string typeLibraryPath ) : string
typeLibraryPath string
return string

ImportActiveXLibrary() protected abstract method

protected abstract ImportActiveXLibrary ( ) : void
return void

ImportTypeLibrary() protected abstract method

protected abstract ImportTypeLibrary ( ) : void
return void

ResolveWrapperAssembly() protected method

protected ResolveWrapperAssembly ( ) : string
return string

WrapperReferenceBase() protected method

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
return System.Runtime.InteropServices.ComTypes