Open sandboxFocus

Method LoadAssemblyFromFile

LoadAssemblyFromFile(string)

Loads an Assembly given its file name.

Declaration
Assembly LoadAssemblyFromFile(string fileName)
Parameters
Type Name Description
string fileName

Full assembly path.

Returns
Type Description
Assembly

The Assembly.

Remarks

Use this method instead of LoadFile(string).

note

You cannot load two assemblies with a different path and the same identity (strong name) into PostSharp.