Browse Source
Merge pull request #3645 from abpframework/maliming/UpdateNuGetConfig
Replace the NuGet.Config file in the module template.
pull/3665/head
Alper Ebicoglu
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/UpdateNuGetConfigStep.cs
|
|
@ -18,6 +18,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.Module |
|
|
|
|
|
|
|
|
DeleteUnrelatedProjects(context, steps); |
|
|
DeleteUnrelatedProjects(context, steps); |
|
|
RandomizeSslPorts(context, steps); |
|
|
RandomizeSslPorts(context, steps); |
|
|
|
|
|
UpdateNuGetConfig(context, steps); |
|
|
CleanupFolderHierarchy(context, steps); |
|
|
CleanupFolderHierarchy(context, steps); |
|
|
|
|
|
|
|
|
return steps; |
|
|
return steps; |
|
|
@ -58,6 +59,11 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.Module |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void UpdateNuGetConfig(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
|
|
|
{ |
|
|
|
|
|
steps.Add(new UpdateNuGetConfigStep("/aspnet-core/NuGet.Config")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private void CleanupFolderHierarchy(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
private void CleanupFolderHierarchy(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
steps.Add(new MoveFolderStep("/aspnet-core/", "/")); |
|
|
steps.Add(new MoveFolderStep("/aspnet-core/", "/")); |
|
|
|
|
|
@ -4,7 +4,7 @@ using System.Linq; |
|
|
using Volo.Abp.Cli.ProjectBuilding.Building; |
|
|
using Volo.Abp.Cli.ProjectBuilding.Building; |
|
|
using Volo.Abp.Cli.ProjectBuilding.Files; |
|
|
using Volo.Abp.Cli.ProjectBuilding.Files; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
namespace Volo.Abp.Cli.ProjectBuilding.Templates |
|
|
{ |
|
|
{ |
|
|
public class UpdateNuGetConfigStep : ProjectBuildPipelineStep |
|
|
public class UpdateNuGetConfigStep : ProjectBuildPipelineStep |
|
|
{ |
|
|
{ |