我有一个使用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手动构建,它可以工作,但不能通过代码构建。
发布于 2021-10-28 15:25:03
打开Microsoft.Common.CurrentVersion.targets文件,删除以下元素并保存文件:
<Output TaskParameter =” WroteAtLeastOneFile “PropertyName =” WroteAtLeastOneFile “/>https://stackoverflow.com/questions/69756841
复制相似问题