dotnet/msbuild

Show warning when referencing an Item as a Property or viceversa

Open

#348 aperta il 13 nov 2015

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)C# (1364 fork)batch import
User Experiencehelp wanted

Metriche repository

Star
 (5062 star)
Metriche merge PR
 (Merge medio 11g 7h) (125 PR mergiate in 30 g)

Descrizione

If you have an item foo but you forget it's an item and you reference it as a property ($(foo)), then MSBuild will just evaluate it to an empty string. This adds to the time it takes to debug the build.

To make debugging easier, MSBuild should emit a warning: "You are referencing the item foo as a property".

Guida contributor