C# Class NAnt.Core.Util.GacCache

Helper class for determining whether assemblies are located in the Global Assembly Cache.
Inheritance: IDisposable
显示文件 Open project: skolima/NAnt Class Usage Examples

Private Properties

Property Type Description
Dispose void

Public Methods

Method 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

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GacCache() public method

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
return System.Security

IsAssemblyInGac() public method

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.
return bool

RecreateDomain() public method

public RecreateDomain ( ) : void
return void