在项目 Xamarin.Forms 中构建时出错 "Value cannot be null parameter name: method"

Error "Value cannot be null parameter name: method" while building in project Xamarin.Forms

我在 Xamarin.Forms

中构建应用程序时遇到错误

"Value cannot be null parameter name: method".

之前它运行良好。现在,当我打开项目并尝试 运行 它时,我收到了这个错误。

我有 Visual Studio 2019 和 Xamarin.Forms 4.6.0.847。

尝试以下步骤:

  • 关闭 Visual Studio.
  • 打开您正在为其构建应用程序的项目文件夹(在我的例子中是 UWP)。
  • 删除 binobj 文件夹。
  • 打开 Visual Studio 和您的项目。
  • 清理你的解决方案。
  • 现在构建并运行您的应用程序。