Table of Contents

Method GetPluginDirectory

Namespace
Anvil.Plugins
Assembly
NWN.Anvil.dll

GetPluginDirectory(Assembly)

Gets the install directory of the specified plugin.

[Obsolete("Use GetPlugin().Path instead.")]
public string? GetPluginDirectory(Assembly pluginAssembly)

Parameters

pluginAssembly Assembly

The assembly of the plugin, e.g. typeof(MyService).Assembly

Returns

string

The install directory for the specified plugin.

Exceptions

ArgumentException

Thrown if the specified assembly is not a plugin.