PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IPost­Sharp­Environment Interface / IPost­Sharp­Environment Methods / IPost­Sharp­Environment.​Load­Assembly­From­File Method

IPostSharpEnvironment.LoadAssemblyFromFile Method

Loads an Assembly given its file name.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
Assembly LoadAssemblyFromFile(
	string fileName
)

Parameters

fileName
Type: System.String
Full assembly path.

Return Value

Type: Assembly
The Assembly.
Remarks

Use this method instead of LoadFile(String).

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