dotnet/msbuild

Show warning when referencing an Item as a Property or viceversa

Open

#348 建立於 2015年11月13日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)C# (1,364 fork)batch import
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".

貢獻者指南