mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Clean up IsDotNet46 check
This commit is contained in:
1 parent
7723b6a1a6
commit
e3ed94f535
1 file changed
+1
-1
@@ -28,7 +28,7 @@ namespace BepInEx.Preloader
|
||||
|
||||
public static bool IsPostUnity2017 { get; } = File.Exists(Path.Combine(Paths.ManagedPath, "UnityEngine.CoreModule.dll"));
|
||||
|
||||
public static bool IsDotNet46 { get; } = string.Compare("4.0.30319.42000", Environment.Version.ToString(), StringComparison.Ordinal) <= 0;
|
||||
public static bool IsDotNet46 { get; } = new Version("4.0.30319.42000") <= Environment.Version;
|
||||
|
||||
static Preloader()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user