Xamarin.Android and VB.Net Libraries

后端 未结 2 630
攒了一身酷
攒了一身酷 2020-12-21 20:34

Though it is far from my choice, I\'m forced to work with some libraries that were written in VB.Net. One of these libraries has some DTOs I\'m looking to reuse in a Xamari

相关标签:
2条回答
  • I had the same issue and could overpass it by rebuilding the VB project after adding the following line:

    <VBRuntime>Embed</VBRuntime>
    

    to the PropertyGroup section of the file NameOfProject.VBPROJ (do it using Notepad, eventually). It will finally look something like this:

    <?xml version="1.0" encoding="utf-8"?>
    [...]
      <PropertyGroup>
        [...]
        <VBRuntime>Embed</VBRuntime>
      </PropertyGroup>
    [...]
    

    Some hint came from here:

    http://blogs.msdn.com/b/lucian/archive/2010/01/29/core6-vb-core-make-the-vb-runtime-optional-without-breaking-ctype-c.aspx

    0 讨论(0)
  • 2020-12-21 21:08

    You can also solve the problem by installing the package "Microsoft.VisualBasic" via NuGet.

    0 讨论(0)
提交回复
热议问题