maliming
5 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
1 changed files with
4 additions and
7 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/ProjectRenameStep.cs
|
|
|
@ -19,9 +19,9 @@ public class ProjectRenameStep : ProjectBuildPipelineStep |
|
|
|
var csprojFiles = context.Files.Where(f => f.Name.EndsWith(".csproj")); |
|
|
|
foreach (var file in csprojFiles) |
|
|
|
{ |
|
|
|
if (file.Name == _oldName) |
|
|
|
if (file.Name.Contains(_oldName)) |
|
|
|
{ |
|
|
|
file.SetName(_newName); |
|
|
|
file.SetName(file.Name.Replace(_oldName, _newName)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -41,13 +41,10 @@ public class ProjectRenameStep : ProjectBuildPipelineStep |
|
|
|
file.SetLines(lines); |
|
|
|
} |
|
|
|
|
|
|
|
var directoryFiles = context.Files.Where(f => f.IsDirectory && f.Name == _oldName); |
|
|
|
var directoryFiles = context.Files.Where(f => f.Name.Contains(_oldName)); |
|
|
|
foreach (var file in directoryFiles) |
|
|
|
{ |
|
|
|
if (file.Name == _oldName) |
|
|
|
{ |
|
|
|
file.SetName(_newName); |
|
|
|
} |
|
|
|
file.SetName(file.Name.Replace(_oldName, _newName)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|