Skip to content

Commit 2d2196c

Browse files
committed
Update RemoveProjectFromSolutionStep.cs
1 parent 0cbdc8c commit 2d2196c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ private void RemoveProjectFromSlnxFile(FileEntry solutionFile)
9999
node.ParentNode!.RemoveChild(node);
100100
}
101101

102-
solutionFile.SetContent(document.OuterXml);
102+
solutionFile.SetContent(
103+
document.OuterXml
104+
.SplitToLines()
105+
.Where(x=> !x.Trim().Equals(string.Empty))
106+
.JoinAsString(Environment.NewLine));
103107
}
104108

105109
private void RemoveProjectFromSlnFile(FileEntry solutionFile)

0 commit comments

Comments
 (0)