Skip to content

AssemblyLoader

Namespace: Dotsider.Core.Analysis

Assembly: Dotsider.Core.dll

Shared factory for opening assembly files. Handles apphosts (companion .dll redirect), single-file bundles (entry assembly extraction), and direct .dll/.exe loading. Returns an AssemblyOpenResult that preserves the distinction so callers can decide how to present each case (e.g. showing an apphost dialog).

public static class AssemblyLoader

ObjectAssemblyLoader

Opens an assembly from the given path, detecting apphosts and single-file bundles.

Parameters:

  • filePath (String): Path to the file to open.

Returns: AssemblyOpenResult

An AssemblyOpenResult describing the result: Direct for regular assemblies, ApphostWithCompanion for native apphosts with a companion .dll, or BundleEntry for single-file bundles.

public static AssemblyOpenResult Open(string filePath)