コード例 #1
0
        static int Main(string[] args)
        {
            Console.WriteLine("=========ABI CHECK START=========");

            AssemblyOptions options = null;

            CommandLine.Parser.Default.ParseArguments <AssemblyOptions>(args).WithParsed(b => options = b);

            if (options == null)
            {
                Console.WriteLine($"invalid Arguments");
                return(0);
            }

            var tester  = new ABITester(options.BasePath, options.PrPath, options.IsFile);
            var bResult = tester.CheckABI();

            Console.WriteLine("=====================");
            Console.WriteLine($"ABI CHECK : {bResult}");
            Console.WriteLine("=====================");

            Console.WriteLine("=========ABI CHECK END=========");

            return(bResult ? 0 : 1);
        }