Add two unit-tests for skipped targets with inputs but no outputs
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 139
Description
Building this project results in logging a `TaskParameterEventArgs` with `kind == SkippedTargetInputs`, where `itemType == null` and `Items == null`:
```xml
<_CodesignItems Include="foo" />
```

This other case results in a friendlier message:
```xml
```

The `TaskParameterEventArgs` is logged here:
https://github.com/dotnet/msbuild/blob/de1d7a295d709c3a748cc46cd5dc9bddd624ea46/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs#L357
The friendlier message is logged here:
https://github.com/dotnet/msbuild/blob/de1d7a295d709c3a748cc46cd5dc9bddd624ea46/src/Build/BackEnd/Components/RequestBuilder/TargetUpToDateChecker.cs#L483-L484
We should add a couple of tests for the above scenarios and perhaps avoid logging both `TaskParameterEventArgs` if the item array is empty.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.