Example #1
0
        public static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                throw new ArgumentException($@"You must specify at least one job name from [""{Versions}"", ""{Integrations}, ""{Msi}""].");
            }

            var solutionDir = EnvironmentTools.GetSolutionDirectory();

            if (JobShouldRun(Integrations, args))
            {
                Console.WriteLine("--------------- Integrations Job Started ---------------");
                GenerateIntegrationDefinitions.Run(solutionDir);
                Console.WriteLine("--------------- Integrations Job Complete ---------------");
            }

            if (JobShouldRun(Versions, args))
            {
                Console.WriteLine("--------------- Versions Job Started ---------------");
                SetAllVersions.Run();
                Console.WriteLine("--------------- Versions Job Complete ---------------");
            }

            if (JobShouldRun(Msi, args))
            {
                Environment.SetEnvironmentVariable("SOLUTION_DIR", solutionDir);
                var publishBatch = Path.Combine(solutionDir, "tools", "PrepareRelease", "publish-all.bat");
                ExecuteCommand(publishBatch);

                Console.WriteLine("--------------- MSI Job Started ---------------");
                SyncMsiContent.Run();
                Console.WriteLine("--------------- MSI Job Complete ---------------");
            }
        }
Example #2
0
        public static void Main(string[] args)
        {
            if (JobShouldRun(Versions, args))
            {
                Console.WriteLine("--------------- Versions Job Started ---------------");
                SetAllVersions.Run();
                Console.WriteLine("--------------- Versions Job Complete ---------------");
            }

            var solutionDir = EnvironmentTools.GetSolutionDirectory();

            if (JobShouldRun(Integrations, args))
            {
                Console.WriteLine("--------------- Integrations Job Started ---------------");
                GenerateIntegrationDefinitions.Run(solutionDir);
                Console.WriteLine("--------------- Integrations Job Complete ---------------");
            }

            if (JobShouldRun(Msi, args))
            {
                Environment.SetEnvironmentVariable("SOLUTION_DIR", solutionDir);
                var publishBatch = Path.Combine(solutionDir, "tools", "PrepareRelease", "publish-all.bat");
                ExecuteCommand(publishBatch);

                Console.WriteLine("--------------- MSI Job Started ---------------");
                SyncMsiContent.Run();
                Console.WriteLine("--------------- MSI Job Complete ---------------");
            }
        }