[fix]package version comparison

pull/2/head
EP-Toushirou 2026-02-26 20:54:43 +08:00
parent c9214b2cf9
commit 0e62166afb
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ public class PolymorphicCodeGenerator
public void Generate()
{
var installerController = new InstallerController();
if (installerController.PackageVersion.CompareTo("8.4.0") < 0)
if (new Version(installerController.PackageVersion) < new Version("8.4.0"))
{
throw new Exception("Polymorphic code generation requires com.code-philosophy.hybridclr package version 8.4.0 or higher.");
}