Add two unit-tests for skipped targets with inputs but no outputs #7362
Labels
Area: Engine
Issues impacting the core execution of targets and tasks.
Area: Logging
Area: Tests
triaged
Building this project results in logging a
TaskParameterEventArgs
withkind == SkippedTargetInputs
, whereitemType == null
andItems == null
:This other case results in a friendlier message:
The
TaskParameterEventArgs
is logged here:msbuild/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs
Line 357 in de1d7a2
The friendlier message is logged here:
msbuild/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs
Lines 483 to 484 in de1d7a2
We should add a couple of tests for the above scenarios and perhaps avoid logging both
TaskParameterEventArgs
if the item array is empty.The text was updated successfully, but these errors were encountered: