|
|
|
@ -10,6 +10,8 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps |
|
|
|
private readonly string _solutionFilePath; |
|
|
|
private readonly string _projectFolderPath; |
|
|
|
|
|
|
|
private string ProjectNameWithQuotes => $"\"{_projectName}\""; |
|
|
|
|
|
|
|
public RemoveProjectFromSolutionStep( |
|
|
|
string projectName, |
|
|
|
string solutionFilePath = null, |
|
|
|
@ -59,7 +61,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps |
|
|
|
{ |
|
|
|
foreach (var solutionFileLine in solutionFileLines) |
|
|
|
{ |
|
|
|
if (solutionFileLine.Contains(_projectName)) |
|
|
|
if (solutionFileLine.Contains(ProjectNameWithQuotes)) |
|
|
|
{ |
|
|
|
var curlyBracketStartIndex = solutionFileLine.LastIndexOf("{", StringComparison.OrdinalIgnoreCase); |
|
|
|
var curlyBracketEndIndex = solutionFileLine.LastIndexOf("}", StringComparison.OrdinalIgnoreCase); |
|
|
|
|