当我尝试编译使用具有多目标(netstandard2.0
和 xamarin.iOS
)的 C# 7 元组的代码时,我收到以下错误:
Predefined type 'System.ValueTuple`2' is declared in multiple referenced assemblies
最佳答案
它可能是作为来自另一个包的引用自动添加的。只需删除该 NuGet 包即可解决冲突。
uninstall-package System.ValueTuple
是包管理器控制台的命令。
关于c# - Xamarin - 多目标 - "' System.ValueTuple` 2' is declared in multiple referenced",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49634015/