Determines whether an assembly is installed in the Global Assembly Cache given its file name or path.
true if assemblyFile is installed in the Global Assembly Cache; otherwise, false.
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 false 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.
GacCache Class | NAnt.Core.Util Namespace