Skip to main content

ModDependencyResolver

A static class in TavernLib, TavernLib.Backend.Mods.

Works out every mod a mod needs, from the merged index and fetched manifests, for one target.

Fields​

1 private and internal field
MemberWhat it is
private const int MaxDepthDeepest dependency chain allowed before resolving throws.

Methods​

MemberWhat it is
static List<ModManifest> ResolveDependencies(ModManifest root, IReadOnlyList<ModSummary> index, Func<string, string, string, ModManifest> fetchManifest, string target)The newest allowed version of each dependency. Prunes ones with no build for the target; throws on conflicts, cycles or a chain deeper than 5.