dotnet/msbuild
在 GitHub 查看Show warning when referencing an Item as a Property or viceversa
Open
#348 建立於 2015年11月13日
User Experiencehelp wanted
倉庫指標
- Star
- (5,062 star)
- PR 合併指標
- (平均合併 11天 7小時) (30 天內合併 125 個 PR)
描述
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".