Update RemoveProjectFromSolutionStep.cs

pull/10363/head
Yunus Emre Kalkan 4 years ago
parent 405a3e5d0f
commit c3771ce11c

@ -55,7 +55,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps
var jsonRoot = JObject.Parse(abpmdlFile.Content);
var packagesObj = (JObject) jsonRoot["packages"];
packagesObj.Remove(_projectName);
packagesObj?.Remove(_projectName);
abpmdlFile.SetContent(jsonRoot.ToString(Formatting.Indented));
}

Loading…
Cancel
Save