C# Класс NAnt.Core.Util.GacCache

Helper class for determining whether assemblies are located in the Global Assembly Cache.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Dispose void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GacCache() публичный Метод

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
Результат System.Security

IsAssemblyInGac() публичный Метод

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.
Результат bool

RecreateDomain() публичный Метод

public RecreateDomain ( ) : void
Результат void