[Feature Request]: Analyzer - report when Target Explicit Input list doesn't include inner Task parameters #9741
Labels
Area: BuildCheck
Feature Request
Feature: Warning Waves
Warnings to enable in opt-in waves. Formerly "strict mode".
triaged
Summary
There should be an analyzer that validates that Targets that explicitly track Inputs are accounting for Properties/Items that
In dotnet/sdk#16325 we discovered that the
CoreCompile
Target wasn't tracking an value that was used by a Task inside the Target.Background and Motivation
dotnet/sdk#16325 is an example of this - the
$(SourceLink)
property points to the generated sourcelink file, and is an input to theCsc
Task insideCoreCompile
, but that Property isn't captured in theInputs
ofCoreCompile
.Proposed Feature
We should have an analyzer that validates this and suggests that users add specific values to the Inputs list.
Alternative Designs
No response
The text was updated successfully, but these errors were encountered: