dotnet/msbuild

Show warning when referencing an Item as a Property or viceversa

Open

#348 ouverte le 13 nov. 2015

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)C# (1 364 forks)batch import
User Experiencehelp wanted

Métriques du dépôt

Stars
 (5 062 stars)
Métriques de merge PR
 (Merge moyen 11j 7h) (125 PRs mergées en 30 j)

Description

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".

Guide contributeur