【发布时间】:2021-10-28 15:24:29
【问题描述】:
我有一个使用 Microsoft.Build 库构建另一个项目的 C# 项目。在我将 VS 升级到 16.11.5 版本之前,它一直运行良好。现在,执行 project.Build() 时,我在下面的记录器文件中收到错误:
ERROR C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4693,7): The "WroteAtLeastOneFile" parameter is not supported by the "Copy" task. Verify the parameter exists on the task, and it is a gettable public instance property.
我尝试从 VS 手动构建,它可以工作,但通过代码构建时不行。
【问题讨论】: