我有一個 C# 專案,它使用 Microsoft.Build 庫構建另一個專案。在我將 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 手動構建,它可以作業,但在通過代碼構建時不起作用。
uj5u.com熱心網友回復:
打開 Microsoft.Common.CurrentVersion.targets 檔案并洗掉以下元素并保存檔案:
<Output TaskParameter =” WroteAtLeastOneFile “PropertyName =” WroteAtLeastOneFile “/>
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/340355.html
