无法复制文件 deps.json,因为找不到该文件。Microsoft.Common.CurrentVersion.targets 4919

Dil*_*d K 6 .net visual-studio

我刚刚将 VS 2019 更新到 16.9.4 版本。有时我在重建解决方案时遇到三个错误:

无法复制文件 deps.json,因为找不到该文件。Microsoft.Common.CurrentVersion.targets 4919
无法复制文件runtimeconfig.json,因为它是 Microsoft.Common.CurrentVersion.targets 4919 无法复制文件runtimeconfig.dev.json,因为它是Microsoft.Common.CurrentVersion.targets 4919

当我进行清理和重建时,重建就会成功。当我在重建后再次尝试重建时,我收到这些错误。我在这里发现了几个相同的问题: .deps.json 无法找到 https://github.com/dotnet/efcore/issues/16386 我尝试了他们的 worarrounds 但它无法帮助我。有谁知道解决方案吗?我的项目在 .NET 5 中