diff --git a/src/AXSharp.compiler/src/AXSharp.Compiler/AxProject.cs b/src/AXSharp.compiler/src/AXSharp.Compiler/AxProject.cs index 508d5b5f..54244308 100644 --- a/src/AXSharp.compiler/src/AXSharp.Compiler/AxProject.cs +++ b/src/AXSharp.compiler/src/AXSharp.Compiler/AxProject.cs @@ -162,8 +162,15 @@ private static IEnumerable SearchForApaxFiles(string directory, int curr static bool AreVersionsCompatible(string v1, string v2) { - var versionA = ParseVersion(v1); - var versionB = ParseVersion(v2); + bool v1SemverCompliant = Version.TryParse(v1, out Version? versionA); + bool v2SemverCompliant = Version.TryParse(v2, out Version? versionB); + + + if(!v1SemverCompliant || !v2SemverCompliant) + { + return v1?.Trim() == v2?.Trim(); + } + if (v1.StartsWith("^") || v2.StartsWith("^")) {