在构建Xamarin iOS项目时无法找到系统类型

我正在用Xamarin构建一个多平台类库。 Android项目构建没有问题。 但对于各种System类型,iOS项目给了我一堆这样的错误:

error CS0012: The type 'System.IDisposable' is defined in an assembly that is not referenced. Consider adding a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

无论我是通过Visual Studio构建还是使用msbuild在命令行上构建,都会发生这种情况。

我的.csproj有这些框架引用和包引用:

            

请注意, My.Other.Library不是iOS项目; 它有netstandard1.4netstandard1.6netstandard2.0net45 。 我猜这不是问题,因为我的Android项目也使用了相同的库,工作正常。

目前这两个项目具有相同的代码 – 也就是说,它们都从共享目录编译相同的.cs文件,但每个项目中单独存在的AssemblyInfo.cs除外。 除了Android项目使用Mono.Android而不是Xamarin.iOS之外,它们也有相同的程序集引用。

我正在使用Mac Visual Studio Community 7.5.2。

有任何想法吗?