Table of Contents

Class BindingCheck

Namespace
Valheim.Testing.Bindings
Assembly
Valheim.Testing.Bindings.dll

Checks, without loading or running anything, that a built mod's references into the supplied game assemblies still bind: every type, field and method (properties and events are their accessor methods) that the mod's code, signatures, attributes and metadata name. A reference the runtime could not bind (a removed or renamed member, a changed signature or field type, a removed type) is reported in Missing with the mod methods that use it; the runtime would throw MissingFieldException, MissingMethodException or TypeLoadException only when it first compiled one of them. A member that still exists but is not accessible from the mod goes to Access instead: a mod built against publicized assemblies references non-public members on purpose. References into assemblies that were not supplied are counted in NotChecked, never reported as missing.

public static class BindingCheck
Inheritance
object
BindingCheck

Methods

Check(string, BindingCheckOptions)

Reads the mod assembly and checks its references against the supplied game files; missing inputs are refused.

public static BindingReport Check(string modPath, BindingCheckOptions options)

Parameters

modPath string
options BindingCheckOptions

Returns

BindingReport