Visual Studio 2019 版本 16.9.2 DotNet 5.0(核心控制台应用程序)中的构建操作错误

Build Action bug in Visual Studio 2019 Version 16.9.2 DotNet 5.0 (Core console app)

在 Visual Studio 2019 中发现了一个问题,即无法 select 对创建的任何静态文件执行构建操作。无论 select 编辑什么生成操作,每次都会显示错误消息“属性 值无效”。

An error has occurred while saving the edited properties listed below:
    Build Action
One or more values are invalid. User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED))

是否有已知的解决方法?我是 运行 DotNet 5.0,它是一个非常简单的控制台应用程序。

看起来 Visual Studio 重启解决了问题。去图吧。