【问题标题】:xamarin: Failed to resolve assembly: System.Securityxamarin:无法解析程序集:System.Security
【发布时间】:2014-03-07 15:43:41
【问题描述】:

当我尝试部署 iOS 应用程序时,我收到以下错误: 错误 MT2002:无法解析程序集:'System.Security,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a'

除了 HelloWorld 应用程序中的引用(monotouch、System、System.Core 和 System.Xml)之外,该项目没有其他引用

构建总是成功的。

我该如何解决这个问题?

【问题讨论】:

    标签: c# .net xamarin.ios xamarin system.security


    【解决方案1】:

    System.Security.dll 不是 Xamarin.iOS 附带的程序集。版本号也不对。当添加对不是使用 Xamarin.iOS 程序集(或 PCL)构建的代码的引用时,通常会发生这种情况。

    IOW 您的应用程序必须使用其他东西(除了 monotouch、System、System.Core 和 System.Xml_ 或您的引用之一不是 Xamarin.iOS 提供的程序集(例如来自 MS .NET 的程序集)。

    我该如何解决这个问题?

    查看所有程序集引用并确保它们都来自 Xamarin.iOS 提供的程序集。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-11
      • 2010-12-31
      • 1970-01-01
      • 2016-11-07
      • 2020-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多