public static ProjectBuildPipeline Build(ProjectBuildContext context)
        {
            var pipeline = new ProjectBuildPipeline(context);

            pipeline.Steps.Add(new FileEntryListReadStep());

            pipeline.Steps.AddRange(context.Template.GetCustomSteps(context));

            pipeline.Steps.Add(new ProjectReferenceReplaceStep());
            pipeline.Steps.Add(new TemplateCodeDeleteStep());
            pipeline.Steps.Add(new SolutionRenameStep());

            if (context.Template.Name == AppProTemplate.TemplateName ||
                context.Template.Name == ModuleProTemplate.TemplateName)
            {
                pipeline.Steps.Add(new LicenseCodeReplaceStep());
            }

            if ((context.BuildArgs.UiFramework == UiFramework.Mvc || context.BuildArgs.UiFramework == UiFramework.Blazor) &&
                context.BuildArgs.MobileApp == MobileApp.None)
            {
                pipeline.Steps.Add(new RemoveRootFolderStep());
            }

            if (context.BuildArgs.ConnectionString != null)
            {
                pipeline.Steps.Add(new ConnectionStringChangeStep());
            }

            pipeline.Steps.Add(new CreateProjectResultZipStep());

            return(pipeline);
        }
示例#2
0
        public static ProjectBuildPipeline Build(ProjectBuildContext context)
        {
            var pipeline = new ProjectBuildPipeline(context);

            pipeline.Steps.Add(new FileEntryListReadStep());

            pipeline.Steps.AddRange(context.Template.GetCustomSteps(context));

            pipeline.Steps.Add(new ProjectReferenceReplaceStep());
            pipeline.Steps.Add(new TemplateCodeDeleteStep());
            pipeline.Steps.Add(new SolutionRenameStep());

            if (context.Template.Name == AppProTemplate.TemplateName ||
                context.Template.Name == MicroserviceProTemplate.TemplateName ||
                context.Template.Name == ModuleProTemplate.TemplateName)
            {
                pipeline.Steps.Add(new LicenseCodeReplaceStep()); // todo: move to custom steps?
            }

            if (context.Template.Name == AppTemplate.TemplateName ||
                context.Template.Name == AppProTemplate.TemplateName)
            {
                pipeline.Steps.Add(new DatabaseManagementSystemChangeStep()); // todo: move to custom steps?
            }

            if ((context.BuildArgs.UiFramework == UiFramework.Mvc || context.BuildArgs.UiFramework == UiFramework.Blazor) &&
                context.BuildArgs.MobileApp == MobileApp.None && context.Template.Name != MicroserviceProTemplate.TemplateName)
            {
                pipeline.Steps.Add(new RemoveRootFolderStep());
            }

            pipeline.Steps.Add(new CreateProjectResultZipStep());

            return(pipeline);
        }
        public static ProjectBuildPipeline Build(ProjectBuildContext context)
        {
            var pipeline = new ProjectBuildPipeline(context);

            pipeline.Steps.Add(new FileEntryListReadStep());

            pipeline.Steps.AddRange(context.Template.GetCustomSteps(context));

            if (!context.BuildArgs.ExtraProperties.ContainsKey("local-framework-ref"))
            {
                pipeline.Steps.Add(new NugetReferenceReplaceStep());
            }

            pipeline.Steps.Add(new TemplateCodeDeleteStep());
            pipeline.Steps.Add(new SolutionRenameStep());

            if (context.Template.Name == AppProTemplate.TemplateName)
            {
                pipeline.Steps.Add(new LicenseCodeReplaceStep());
            }

            pipeline.Steps.Add(new CreateProjectResultZipStep());

            return(pipeline);
        }
        public static ProjectBuildPipeline Build(ProjectBuildContext context)
        {
            var pipeline = new ProjectBuildPipeline(context);

            pipeline.Steps.Add(new FileEntryListReadStep());
            pipeline.Steps.Add(new CreateProjectResultZipStep());

            return(pipeline);
        }
示例#5
0
        public static ProjectBuildPipeline Build(ProjectBuildContext context)
        {
            var pipeline = new ProjectBuildPipeline(context);

            pipeline.Steps.Add(new FileEntryListReadStep());
            pipeline.Steps.Add(new ProjectReferenceReplaceStep());
            pipeline.Steps.Add(new ReplaceCommonPropsStep());
            pipeline.Steps.Add(new ReplaceConfigureAwaitPropsStep());
            pipeline.Steps.Add(new CreateProjectResultZipStep());

            return(pipeline);
        }
示例#6
0
        public static ProjectBuildPipeline Build(ProjectBuildContext context)
        {
            var pipeline = new ProjectBuildPipeline();

            pipeline.Steps.Add(new FileEntryListReadStep());
            pipeline.Steps.AddRange(context.Template.GetCustomSteps(context));
            pipeline.Steps.Add(new NugetReferenceReplaceStep());
            pipeline.Steps.Add(new TemplateCodeDeleteStep());
            pipeline.Steps.Add(new SolutionRenameStep());
            pipeline.Steps.Add(new CreateProjectResultZipStep());

            return(pipeline);
        }