Example #1
0
        public static void Main(string[] args)
        {
            ProcessArgs(args, out var updateVersions);

            var outputDirectory             = GetFullPath(@"../../Deployment/Blueprints");
            var msbuildBased_2_1_Blueprints = GetFullPath(@"../BlueprintDefinitions/Msbuild-NETCore_2_1");

            try
            {
                Init(outputDirectory);

                if (updateVersions)
                {
                    var versionUpdater = new UpdatePackageReferenceVersions(msbuildBased_2_1_Blueprints);
                    versionUpdater.Execute();
                }

                var vsMsbuildPackager_2_1 = new VSMsbuildBlueprintPackager(msbuildBased_2_1_Blueprints, Path.Combine(outputDirectory, "VisualStudioBlueprintsMsbuild_2_1"));
                vsMsbuildPackager_2_1.Execute();
            }
            catch (Exception e)
            {
                Console.WriteLine($"Unknown error processing blueprints: {e.Message}");
                Console.WriteLine(e.StackTrace);
                Environment.Exit(-1);
            }
        }
Example #2
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);
            }
        }
Example #3
0
        public static void Main(string[] args)
        {
            var outputDirectory             = Path.GetFullPath(@"../../Deployment/Blueprints");
            var msbuildBased_2_0_Blueprints = Path.GetFullPath(@"../BlueprintDefinitions/Msbuild-NETCore_2_0");

            try
            {
                Init(outputDirectory);

                var vsMsbuildPackager_2_0 = new VSMsbuildBlueprintPackager(msbuildBased_2_0_Blueprints, Path.Combine(outputDirectory, "VisualStudioBlueprintsMsbuild_2_0"));
                vsMsbuildPackager_2_0.Execute();
            }
            catch (Exception e)
            {
                Console.WriteLine($"Unknown error processing blueprints: {e.Message}");
                Console.WriteLine(e.StackTrace);
                Environment.Exit(-1);
            }
        }