Skip to content

Commit

Permalink
Possible fix for another manifestation of dotnet#5418.
Browse files Browse the repository at this point in the history
Basically, don't let empty project updates eclipse potential
evaluation updates.
  • Loading branch information
walterpg committed Sep 23, 2022
1 parent 22310f1 commit 3734700
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ internal abstract class DependenciesRuleHandlerBase

void HandleChangesForRule(IProjectChangeDescription evaluationProjectChange, bool isResolvedItem, IProjectChangeDescription? buildProjectChange = null, Func<string, bool>? isEvaluatedItemSpec = null)
{
IProjectChangeDescription projectChange = buildProjectChange ?? evaluationProjectChange;
IProjectChangeDescription projectChange = buildProjectChange?.Difference.AnyChanges is true ? buildProjectChange : evaluationProjectChange;

foreach (string removedItem in projectChange.Difference.RemovedItems)
{
Expand Down

0 comments on commit 3734700

Please sign in to comment.