示例#1
0
        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);
        }
示例#2
0
 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()}");
     }
 }
示例#3
0
 private static void ShowVersion()
 {
     Console.WriteLine(BridgeVersion.GetCompilerInformationalVersion());
 }