fix:修复当版本号数字大于1位时比较错误的问题

pull/1/head
yuegangyang 2026-02-26 19:25:30 +08:00
parent c9214b2cf9
commit 4f9466a6b7
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.");
}