Loads an assembly given its file name or path.
The loaded assembly.
Exception Type | Condition |
---|---|
ArgumentException | assemblyFile is an empty String. |
FileNotFoundException | assemblyFile is not found, or the module you are trying to load does not specify a filename extension. |
BadImageFormatException | assemblyFile is not a valid assembly. |
PathTooLongException | An assembly or module was loaded twice with two different evidences, or the assembly name is longer than MAX_PATH characters. |
AssemblyFunctions Class | NAnt.Core.Functions Namespace