Xamarin建立在加载组件错误异常信息:System.IO.FileNotFoundException [英] Xamarin build error Exception while loading assemblies: System.IO.FileNotFoundException

查看:462
本文介绍了Xamarin建立在加载组件错误异常信息:System.IO.FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

总是我尝试建立我的应用程序Xamarin我得到这个错误。而且我不知道为什么。
我使用.Net框架4的System.Security.dll,我虽然这应该工作。
谢谢你。


  

C:\\ Program Files文件
  (86)\\的MSBuild \\ Xamarin \\ Android的\\ Xamarin.Android.Common.targets(2,2):
  错误:异常而装载组件:
  System.IO.FileNotFoundException:未能加载程序集
  System.Security,版本= 4.0.0.0,文化=中立,
  公钥= b03f5f7f11d50a3a。也许它不会在单声道存在
  Android的个人资料?


  
  

Dateiname:System.Security.dll


  
  


  Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference
  参考ReaderParameters参数)


  
  


  Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
  装配,装配AssemblyDefinition)


  
  


  Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
  装配,装配AssemblyDefinition)


  
  

贝Xamarin.Android.Tasks.ResolveAssemblies.Execute()
  (TaskManager2)



解决方案

我有System.Web程序相同的问题。我所要做的就是增加从GAC对System.Web引用。

always i try to Build my Xamarin app i get this error. And i dont know why. I use the System.Security.dll of .Net Framework 4 and i though this should work. Thanks.

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?

Dateiname: 'System.Security.dll'

bei Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)

bei Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly)

bei Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly)

bei Xamarin.Android.Tasks.ResolveAssemblies.Execute() (TaskManager2)

解决方案

I had the same issue with System.Web. All I had to do was to add the System.Web reference from the GAC.

这篇关于Xamarin建立在加载组件错误异常信息:System.IO.FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆