xamarin.mac 添加网络标准库但构建错误

xamarin.mac add netstandard lib but build error

开发 mac 应用程序使用 vs mac。 我可以将 .NET Standard2.0 库引用到我的 xamarin.mac 项目中。 但我无法取得成功.. 错误是:

/Users/yuzd/Projects/AntDeploy/AntDeploy/ViewController.cs(25,25):错误 CS0012:类型 'Object' 在未引用的程序集中定义。您必须添加对程序集 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' 的引用。 (CS0012) (AntDeploy)

如何解决这个错误?

参见GitHub Issue Here

将以下内容添加到您的 MacOS .csproj

<Reference Include="netstandard" />