NAnt SDK Documentation - v0.85-nightly-2005-11-09

AssemblyFunctions.LoadFromFile Method 

[This is preliminary documentation and subject to change.]

Loads an assembly given its file name or path.

[Visual Basic]
<Function(Name:="load-from-file")>
Public Function LoadFromFile( _
   ByVal assemblyFile As String _
) As Assembly
[C#]
[Function(Name="load-from-file")]
public Assembly LoadFromFile(
   string assemblyFile
);

Parameters

assemblyFile
The name or path of the file that contains the manifest of the assembly.

Return Value

The loaded assembly.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.AssemblyFunctions.LoadFromFile(System.String)

Exceptions

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.

See Also

AssemblyFunctions Class | NAnt.Core.Functions Namespace