File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,9 @@ private bool RestoreSolution(string solution, out IEnumerable<string> projects)
360360
361361 /// <summary>
362362 /// Executes `dotnet restore` on all solution files in solutions.
363+ /// As opposed to RestoreProjects this is not run in parallel using PLINQ
364+ /// as `dotnet restore` on a solution already uses multiple threads for restoring
365+ /// the projects (this can be disabled with the `--disable-parallel` flag).
363366 /// Returns a list of projects that are up to date with respect to restore.
364367 /// </summary>
365368 /// <param name="solutions">A list of paths to solution files.</param>
@@ -370,6 +373,13 @@ private IEnumerable<string> RestoreSolutions(IEnumerable<string> solutions) =>
370373 return restoredProjects ;
371374 } ) ;
372375
376+ /// <summary>
377+ /// Executes `dotnet restore` on all projects in projects.
378+ /// This is done in parallel for performance reasons.
379+ /// To ensure that output is not interleaved, the output of each
380+ /// restore is collected and printed.
381+ /// </summary>
382+ /// <param name="projects">A list of paths to project files.</param>
373383 private void RestoreProjects ( IEnumerable < string > projects )
374384 {
375385 var stdoutLines = projects
You can’t perform that action at this time.
0 commit comments