I created a portable Class library, which should be used in a xamarin project, I removed the Microsoft.VisualBasic reference explicit in the Project. Using the library in the xamarin project causes the following compiletime error:
Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?Dateiname: "Microsoft.VisualBasic.dll" bei Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) bei Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection
1 assemblies, AssemblyDefinition assembly, Boolean topLevel) bei Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection
1 assemblies, AssemblyDefinition assembly, Boolean topLevel) bei Xamarin.Android.Tasks.ResolveAssemblies.Execute()
When I inspected the .dll-file with the dependency walker (ildasm.exe), I noticed, that Microsoft.VisualBasic is listed as dependency:
.assembly extern Microsoft.VisualBasic
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
.ver 10:0:0:0
}
Can anybody tell me the reason why Microsoft.VisualBasic is still a dependency of the class library and how to solve this issue?
Thanks Ced