-
Notifications
You must be signed in to change notification settings - Fork 58
Requiring a Minimum HugsLib Version
UnlimitedHugs edited this page May 6, 2020
·
3 revisions
When your mod relies on a HugsLib feature not present in earlier versions, it's a good idea to specify a minimum version requirement for the library. On startup, HugsLib will check its version against the requirement, and notify the player if an update is needed.
This helps to avoid cryptic errors which will prevent your mod assembly from loading- with zero errors, if dev mode is off.
To specify a minimum HugsLib version, add a /About/Version.xml
file with the following contents:
<?xml version="1.0" encoding="utf-8"?>
<VersionInfo>
<requiredLibraryVersion>8.0.0</requiredLibraryVersion>
</VersionInfo>
Replace the requiredLibraryVersion
tag contents as needed.