.net Portable Class Library contains Microsoft.VisualBasic as a dependency

I created a portable class library that should be used in the xamarin project, I deleted the Microsoft.VisualBasic link explicit in Project. Using the library in the xamarin project causes the following compilation error:

Assembly loading exception: System.IO.FileNotFoundException: Failed to load assembly "Microsoft.VisualBasic, Version = 10.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a '. Perhaps this does not exist in the Mono profile for Android? Dateiname:" Microsoft .VisualBasic.dll "bei Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (AssemblyNameReference link, ReaderParameters parameters) bei Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences (ICollection 1 assemblies, AssemblyDefinition assembly, Boolean topLevel) bei Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection1 assemblies, AssemblyDefinitioni Tasks.ResolveAssemblies.Execute ()

When I inspected the DLL file using the dependency host (ildasm.exe), I noticed that Microsoft.VisualBasic was listed as a dependency:

.assembly extern Microsoft.VisualBasic
{
  .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )                         // .?_....:
  .ver 10:0:0:0
}

- , Microsoft.VisualBasic ?

Ced

+4
2

, . , , , -novbruntimeref ( Article). , , , .

<NoVBRuntimeReference>On</NoVBRuntimeReference>

"true" "on". .

0

. Option Strict "On", Microsoft.Visualbasic. , vb.net, !

...

0

Source: https://habr.com/ru/post/1664562/


All Articles