C# Class NAnt.Core.Util.GacCache

Helper class for determining whether assemblies are located in the Global Assembly Cache.
Inheritance: IDisposable
Afficher le fichier Open project: skolima/NAnt Class Usage Examples

Private Properties

Свойство Type Description
Dispose void

Méthodes publiques

Méthode Description
Dispose ( ) : void
GacCache ( Project project ) : System.Security

Initializes a new instance of the GacCache class in the context of the given Project.

IsAssemblyInGac ( string assemblyFile ) : bool

Determines whether an assembly is installed in the Global Assembly Cache given its file name or path.

To determine whether the specified assembly is installed in the Global Assembly Cache, the assembly is loaded into a separate AppDomain.

If the family of the current runtime framework does not match the family of the current target framework, this method will return for all assemblies as there's no way to determine whether a given assembly is in the Global Assembly Cache for another framework family than the family of the current runtime framework.

RecreateDomain ( ) : void

Private Methods

Méthode Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GacCache() public méthode

Initializes a new instance of the GacCache class in the context of the given Project.
public GacCache ( Project project ) : System.Security
project NAnt.Core.Project
Résultat System.Security

IsAssemblyInGac() public méthode

Determines whether an assembly is installed in the Global Assembly Cache given its file name or path.

To determine whether the specified assembly is installed in the Global Assembly Cache, the assembly is loaded into a separate AppDomain.

If the family of the current runtime framework does not match the family of the current target framework, this method will return for all assemblies as there's no way to determine whether a given assembly is in the Global Assembly Cache for another framework family than the family of the current runtime framework.

public IsAssemblyInGac ( string assemblyFile ) : bool
assemblyFile string The name or path of the file that contains the manifest of the assembly.
Résultat bool

RecreateDomain() public méthode

public RecreateDomain ( ) : void
Résultat void