构建现有 sln 失败,Visual Studio 2019

Building existing sln fails with Visual Studio 2019

我刚刚升级到 VS2019,无法构建现有解决方案。编译器在解决方案中的某些项目上生成以下错误:

The "DisableSdkPath" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property.

检查您是否在使用 Microsoft.Net.Compilers 包。升级到版本 3.0.0 解决了我这边的问题。