Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个自定义构建任务,并希望以编程方式访问此属性的值。有可能的?我查看了 Task 类的所有成员,没有看到任何看起来可以让我获得价值的东西。
如果自定义任务在没有属性的情况下无法运行,最佳做法是将该属性作为必需的输入:
[Required] public string OutDir { get; set; }
通过设置:
<MyTask ... OutDir="$(OutDir)" />