dotnet/msbuild
Auf GitHub ansehenCodeTaskFactory error on missing attributes does not contain element name
Open
#2.072 geöffnet am 7. Mai 2017
User Experiencehelp wantedtriaged
Repository-Metriken
- Stars
- (5.062 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 11T 7h) (125 gemergte PRs in 30 T)
Beschreibung
When using CodeTaskFactory, if a Reference element is missing the Include attribute, or a Using element is missing the Namespace attribute, an error is printed about an empty attribute value.
This error isn't great for a few reasons
- It doesn't say which element the attribute is on
- It says "The "Include" attribute has been set but is empty" even when it's missing
- It's emitted at the point the task is used, not declared, so the message about the Include attribute is easily confused for referring to the Items passed to the task