【问题标题】:I cant deploy a VS-2017 app(Android and IOS) to an iphone我无法将 VS-2017 应用程序(Android 和 IOS)部署到 iphone
【发布时间】:2019-07-12 17:36:55
【问题描述】:

我正在尝试将应用程序部署到 iphone,但它给出了下一个警告:

MTOUCH:警告 MT0136:找不到程序集 'System.Configuration,版本=4.0.0.0,文化=中性, PublicKeyToken=b03f5f7f11d50a3a

然后这个错误:

MTOUCH:错误 MT2101:无法解析引用 'System.Configuration.ConfigurationException',引用自 方法'System.Void System.Configuration.ConfigurationErrorsException::.ctor(System.String)' 在'系统,版本=4.0.0.0,文化=中性, PublicKeyToken=b77a5c561934e089

  • 我可以在模拟器中运行应用程序,但不能在真机中运行..

  • 我读到我必须添加 System.Configuration 程序集,但它没有出现在选项中

【问题讨论】:

    标签: c# visual-studio-2017


    【解决方案1】:

    通常在您在项目中右键单击“引用”后,“添加引用”并在“程序集”选项卡下的右上角搜索“配置”,您应该会找到一个名为“System.Configuration”的引用,您可以添加到您的项目中。

    【讨论】:

    • 我没有System.Configuration,但是当我有其他项目使用Entity Framework时出现这个错误,有什么线索吗?
    【解决方案2】:

    我在我的 Xamarin Forms 项目中引用了一个程序集 "System.ServiceModel"。这会导致此问题。我删除了这个程序集并从nuget 包中安装了"System.ServiceModel.Security""System.ServiceModel.Http"

    这解决了我的问题。

    【讨论】:

      猜你喜欢
      • 2016-06-08
      • 1970-01-01
      • 2011-03-22
      • 1970-01-01
      • 1970-01-01
      • 2021-12-18
      • 2017-05-19
      • 1970-01-01
      • 2020-10-17
      相关资源
      最近更新 更多