Browse Source
Remove `PublicWeb` from ms project if there is no `PublicWebSite` flag.
pull/19090/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
8 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceTemplateBase.cs
|
|
|
@ -131,6 +131,14 @@ public abstract class MicroserviceTemplateBase : TemplateInfo |
|
|
|
|
|
|
|
private static void DeleteUnrelatedProjects(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
|
{ |
|
|
|
if (!context.BuildArgs.PublicWebSite) |
|
|
|
{ |
|
|
|
steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.PublicWeb", null, "apps/public-web/src/MyCompanyName.MyProjectName.PublicWeb")); |
|
|
|
steps.Add(new RemoveFolderStep("/apps/public-web")); |
|
|
|
steps.Add(new RemoveProjectFromTyeStep("public-web")); |
|
|
|
steps.Add(new RemoveProjectFromPrometheusStep("public-web")); |
|
|
|
} |
|
|
|
|
|
|
|
//TODO: move common tasks to methods
|
|
|
|
switch (context.BuildArgs.UiFramework) |
|
|
|
{ |
|
|
|
|