PostSharpAPI ReferencePost­Sharp.​ExtensibilityIPost­Sharp­EnvironmentLoad­Assembly­From­File
Open sandboxFocus

IPostSharpEnvironment.LoadAssemblyFromFile Method

LoadAssemblyFromFile(String)

Loads an Assembly given its file name.

Declaration
Assembly LoadAssemblyFromFile(string fileName)
Parameters
Type Name Description
System.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.