Browse Source
Merge pull request #12314 from abpframework/add-gitignore-to-template-remove
Cli: Check </Template-remove> in gitignore files
pull/12315/head
Mahmut Gundogdu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/TemplateCodeDeleteStep.cs
|
|
@ -8,7 +8,7 @@ public class TemplateCodeDeleteStep : ProjectBuildPipelineStep |
|
|
{ |
|
|
{ |
|
|
foreach (var file in context.Files) |
|
|
foreach (var file in context.Files) |
|
|
{ |
|
|
{ |
|
|
if (file.Name.EndsWith(".cs") || file.Name.EndsWith(".csproj") || file.Name.EndsWith(".cshtml") || file.Name.EndsWith(".json")) |
|
|
if (file.Name.EndsWith(".cs") || file.Name.EndsWith(".csproj") || file.Name.EndsWith(".cshtml") || file.Name.EndsWith(".json") || file.Name.EndsWith(".gitignore")) |
|
|
{ |
|
|
{ |
|
|
file.RemoveTemplateCode(context.Symbols); |
|
|
file.RemoveTemplateCode(context.Symbols); |
|
|
file.RemoveTemplateCodeMarkers(); |
|
|
file.RemoveTemplateCodeMarkers(); |
|
|
|