<PackageReference Include="Castle.Core" Version="5.0.0" />

ModuleScope

public class ModuleScope
public static readonly string DEFAULT_ASSEMBLY_NAME

The default assembly (simple) name used for the assemblies generated by a ModuleScope instance.

public static readonly string DEFAULT_FILE_NAME

The default file name used when the assembly is saved using DEFAULT_FILE_NAME.

public string StrongNamedModuleName { get; }

Gets the file name of the strongly named module generated by this scope.

public string WeakNamedModuleName { get; }

Gets the file name of the weakly named module generated by this scope.

public ModuleScope()

Initializes a new instance of the ModuleScope class; assemblies created by this instance will not be saved.

public ModuleScope(bool savePhysicalAssembly)

Initializes a new instance of the ModuleScope class, allowing to specify whether the assemblies generated by this instance should be saved.

public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule)

Initializes a new instance of the ModuleScope class, allowing to specify whether the assemblies generated by this instance should be saved.

public ModuleScope(bool savePhysicalAssembly, bool disableSignedModule, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath)

Initializes a new instance of the ModuleScope class, allowing to specify whether the assemblies generated by this instance should be saved and what simple names are to be assigned to them.

public static byte[] GetKeyPair()

Gets the key pair used to sign the strong-named assembly generated by this ModuleScope.