xamarin: Failed to resolve assembly: System.Security

一世执手 提交于 2019-12-10 14:36:04

问题


When I try to deploy the iOS application I get the following error: error MT2002: Failed to resolve assembly: 'System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

The project has no other references than those that come in the HelloWorld app (monotouch, System, System.Core and System.Xml)

The build is always successful.

How do I solve this?


回答1:


System.Security.dll is not an assembly that Xamarin.iOS ships. The version number is not correct either. This generally happens when adding a reference to code that was not built with Xamarin.iOS assemblies (or PCL).

IOW your application must be using something else (beside monotouch, System, System.Core and System.Xml_ or one of your references is not the assemblies that Xamarin.iOS ships (e.g. an assembly that comes from MS .NET).

How do I solve this?

Review all your assemblies reference and make sure they are all coming from Xamarin.iOS shipped assemblies.



来源:https://stackoverflow.com/questions/22254480/xamarin-failed-to-resolve-assembly-system-security

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!