【问题标题】:How do I get the name of the current Target in MSBuild?如何在 MSBuild 中获取当前目标的名称? 【发布时间】:2010-11-18 02:34:30 【问题描述】: 有没有办法在 MSBuild 中获取当前运行的 Target 的名称? 【问题讨论】: 标签: msbuild 【解决方案1】: 您可能正在寻找$(MSBuildProjectFile),但“目标”有点模糊。 【讨论】: