我刚刚将我的 Xamarin Essentials 升级到 1.3.1,现在我收到与 iOS 项目中的 System.Collections 相关的错误。 **无法解决"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 之间的冲突 **
我需要另一个 nuget 包吗?
Xamarin.Essentials {1.3.1}
Microsoft.AppCenter.Push {2.1.1}
NETStandard.Library {2.0.3}
Microsoft.AppCenter.Crashes {2.1.1}
Xamarin.Forms {4.2.0.815419}
Severity Code Description Project File Line Suppression State
Error Failed to resolve "System.Collections.Generic.Stack`1" reference from "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"
此时,您需要使用 Xamarin.Formsnuget 包版本 4.2.0.778463。 使用 Xamarin.Forms 4.2.0.815419 会产生此问题。