private static bool EnsureMinimalCompilerVersion() { // Check against compiler's informational version as well, so we don't allow a // prerelease package to be used against the corresponding stable release build // of Bridge CLI. if (Constants.MinBridgeVersion > BridgeVersion.GetCompilerInformationalVersion()) { Error($"Minimum required version of Bridge compiler is {Constants.MinBridgeVersion}. Your version: {BridgeVersion.GetCompilerInformationalVersion()}."); return(false); } return(true); }
private static void EnsureProperty(dynamic obj, string name) { if (!IsPropertyExist(obj, name)) { throw new InvalidOperationException($"'{name}' property doesn't exist in '{obj.GetType().FullName}'. Core version: {BridgeVersion.GetCompilerInformationalVersion()}"); } }
private static void ShowVersion() { Console.WriteLine(BridgeVersion.GetCompilerInformationalVersion()); }