fix: fix version comparing in PolymorphicCodeGenerator::Generate when hybridclr minor version >= 10.
Co-authored-by: yuegangyang <yuegangyang@dobest.com>main
parent
c9214b2cf9
commit
6277e75ce1
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue