示例#1
0
        public static void Main(string[] args)
        {
            var outputDirectory            = Path.GetFullPath(@"../../Deployment/Blueprints");
            var msbuildBasedBlueprints     = Path.GetFullPath(@"../BlueprintDefinitions/Msbuild");
            var projectJsonBasedBlueprints = Path.GetFullPath(@"../BlueprintDefinitions/ProjectJson");

            try
            {
                Init(outputDirectory);

                var vsMsbuildPackager = new VSMsbuildBlueprintPackager(msbuildBasedBlueprints, outputDirectory);
                vsMsbuildPackager.Execute();

                var vsProjectJsonPackager = new VSProjectJsonBlueprintPackager(projectJsonBasedBlueprints, outputDirectory);
                vsProjectJsonPackager.Execute();

                var yeomanPackager = new YeomanBlueprintPackager(projectJsonBasedBlueprints, outputDirectory);
                yeomanPackager.Execute();
            }
            catch (Exception e)
            {
                Console.WriteLine($"Unknown error processing blueprints: {e.Message}");
                Console.WriteLine(e.StackTrace);
                Environment.Exit(-1);
            }
        }
示例#2
0
        public static void Main(string[] args)
        {
            var outputDirectory = Path.GetFullPath(@"../../Deployment/Blueprints");
            var blueprintRoot   = Path.GetFullPath(@"../BlueprintDefinitions");

            try
            {
                Init(outputDirectory);

                var vsPackager = new VSBlueprintPackager(blueprintRoot, outputDirectory);
                vsPackager.Execute();

                var yeomanPackager = new YeomanBlueprintPackager(blueprintRoot, outputDirectory);
                yeomanPackager.Execute();
            }
            catch (Exception e)
            {
                Console.WriteLine($"Unknown error processing blueprints: {e.Message}");
                Console.WriteLine(e.StackTrace);
                Environment.Exit(-1);
            }
        }