[This is preliminary documentation and subject to change.]
Loads an assembly given its file name or path.
The loaded assembly.
Missing <remarks> documentation for M:NAnt.Core.Functions.AssemblyFunctions.LoadFromFile(System.String)
| 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