fix: fix version comparing in PolymorphicCodeGenerator::Generate when hybridclr minor version >= 10.

Co-authored-by: yuegangyang <yuegangyang@dobest.com>
main
yuedaregone 2026-03-05 10:39:30 +08:00 committed by GitHub
parent c9214b2cf9
commit 6277e75ce1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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.");
}