dotnet/msbuild

CodeTaskFactory error on missing attributes does not contain element name

Open

#2,072 建立於 2017年5月7日

在 GitHub 查看
 (8 留言) (1 反應) (0 負責人)C# (1,364 fork)batch import
User Experiencehelp wantedtriaged

倉庫指標

Star
 (5,062 star)
PR 合併指標
 (平均合併 11天 7小時) (30 天內合併 125 個 PR)

描述

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

  1. It doesn't say which element the attribute is on
  2. It says "The "Include" attribute has been set but is empty" even when it's missing
  3. 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

貢獻者指南