我正在尝试在我们的xamarin forms应用程序的droid测试项目中设置UITest。在我创建的测试项目上一切正常,但每当我尝试在实际项目上运行测试时,我在加载程序集时都会得到异常。完整的错误消息是:
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.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Runtime.Remoting.dll'
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute() (Tests.Droid)我已经为此工作了几个小时,但没有任何进展。有人知道怎么解决这个问题吗?
发布于 2016-02-05 12:28:07
Xamarin.Android不支持
System.Runtime.Remoting.dll。
您将需要删除该程序集的使用。
参考:
使用确定特定程序集是否适用于Xamarin.Android.
https://stackoverflow.com/questions/35212346
复制相似问题