This attribute and the KSPAssemblyDependency attribute can be used to ensure that plugin assemblies are loaded in the right order. More...
Public Member Functions | |
KSPAssembly (string name, int versionMajor, int versionMinor) | |
Public Attributes | |
string | name |
int | versionMajor |
int | versionMinor |
This attribute and the KSPAssemblyDependency attribute can be used to ensure that plugin assemblies are loaded in the right order.
Suppose Mod A depends on mod B, which is currently at version 2.6. Mod B should add the following line to the end of Properties/AssemblyInfo.cs:
where "ModBName" is the name of Mod B (Mod B's .dll?). Replace 2 and 6 with the major and minor version of Mod B.
Then Mod A should add the following line to the end of Properties/AssemblyInfo.cs:
This will tell KSP that Mod A depends on version 2.6 of Mod B, and ensure the the assemblies get loaded in the proper order.
KSPAssembly.KSPAssembly | ( | string | name, |
int | versionMajor, | ||
int | versionMinor | ||
) |
string KSPAssembly.name |
int KSPAssembly.versionMajor |
int KSPAssembly.versionMinor |