xamarin:无法解析组件:System.Security [英] xamarin: Failed to resolve assembly: System.Security
问题描述
当我尝试部署iOS应用程序时,我得到以下错误:
错误MT2002:无法解析程序集:'System.Security,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a' p>
该项目没有比HelloWorld应用程序(monotouch,System,System.Core和System.Xml)中的引用更多的引用
这个构建总是成功的。
如何解决这个问题?
System.Security.dll
不是Xamarin.iOS发布的程序集。版本号不正确。这通常发生在添加对不是用Xamarin.iOS程序集(或PCL)构建的代码的引用时。
IOW您的应用程序必须使用别的东西System,System.Core和System.Xml_或其中一个引用不是Xamarin.iOS发布的程序集(例如来自MS .NET的程序集)。
如何解决这个问题?
检查所有的程序集引用,并确保它们都来自Xamarin .iOS运送的程序集。
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?
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.
这篇关于xamarin:无法解析组件:System.Security的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!