Browse Source

RemoveProjectFromSolutionStep notfound tolarence

resolves https://github.com/abpframework/abp/issues/5453
pull/5466/head
Yunus Emre Kalkan 6 years ago
parent
commit
196a206107
  1. 10
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/RemoveProjectFromSolutionStep.cs

10
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/RemoveProjectFromSolutionStep.cs

@ -33,6 +33,12 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps
private List<string> RemoveProject(List<string> solutionFileLines)
{
var projectKey = FindProjectKey(solutionFileLines);
if (projectKey == null)
{
return solutionFileLines;
}
var newSolutionFileLines = new List<string>();
var firstOccurence = true;
@ -67,7 +73,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps
}
}
throw new ApplicationException($"The solution file '{_solutionFilePath}' does not contain a project '{_projectName}'");
return null;
}
}
}
}

Loading…
Cancel
Save