Definition at line 15 of file FrameworkVersion.cs.
◆ FrameworkVersion()
static Terraria.ModLoader.FrameworkVersion.FrameworkVersion |
( |
| ) |
|
|
staticprivate |
Definition at line 20 of file FrameworkVersion.cs.
21 var monoRuntimeType = Type.GetType(
"Mono.Runtime");
22 if (monoRuntimeType != null) {
23 string displayName = (string)monoRuntimeType.GetMethod(
"GetDisplayName", BindingFlags.NonPublic | BindingFlags.Static).Invoke(null, null);
25 Version =
new Version(displayName.Substring(0, displayName.IndexOf(
' ')));
29 if (!Platform.IsWindows)
34 const string subkey =
@"SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\";
35 using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(subkey))
36 if (ndpKey != null && ndpKey.GetValue(
"Release") is
int releaseKey)
static readonly Version Version
static readonly Framework Framework
static Version CheckFor45PlusVersion(int releaseKey)
◆ CheckFor45PlusVersion()
static Version Terraria.ModLoader.FrameworkVersion.CheckFor45PlusVersion |
( |
int |
releaseKey | ) |
|
|
staticprivate |
Definition at line 44 of file FrameworkVersion.cs.
45 if (releaseKey >= 461808)
47 if (releaseKey >= 461308)
49 if (releaseKey >= 460798)
51 if (releaseKey >= 394802)
53 if (releaseKey >= 394254)
55 if (releaseKey >= 393295)
57 if (releaseKey >= 379893)
59 if (releaseKey >= 378675)
61 if (releaseKey >= 378389)
64 throw new Exception(
"No 4.5 or later version detected");
static readonly Version Version
◆ Framework
readonly Framework Terraria.ModLoader.FrameworkVersion.Framework |
|
static |
◆ Version
readonly Version Terraria.ModLoader.FrameworkVersion.Version |
|
static |