Table of Contents

Class PluginMetadata

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll

Reads a DLL's BepInEx metadata without loading it, as BepInEx's chainloader decides what to load: the [BepInPlugin], [BepInDependency], [BepInIncompatibility] and [BepInProcess] attributes on its types, matched by full type name as BepInEx matches them, and the assembly references the runtime will resolve. A file name says nothing here: a renamed DLL declares the same plugin, and a DLL named like a plugin may declare none.

public static class PluginMetadata
Inheritance
object
PluginMetadata

Methods

Read(string)

The metadata of the DLL at path; refuses a file that is not a .NET assembly.

public static PluginAssembly Read(string path)

Parameters

path string

Returns

PluginAssembly