dotnet / dotnet/msbuild

Show warning when referencing an Item as a Property or viceversa

Open
#348 4 comments 0 reactions 0 assignees View on GitHub
help wanted User Experience
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.