Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12822

.NET: Build fails on Xamarin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.8
    • None
    • platforms
    • None
    • .NET Thin: Add Xamarin support
    • Release Notes Required

    Description

      • Create new Xamarin Forms app in Visual Studio
      • Add reference to Apache.Ignite NuGet package
      • Try to rebuild all:
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1697,2): error XA2002: Can not resolve reference: `System.Configuration`, referenced by `Apache.Ignite.Core`. Please add a NuGet package or assembly reference for `System.Configuration`, or remove the reference to `Apache.Ignite.Core`.
      

      Xamarin does not include System.Configuration assembly.

      The workaround is to manually add a reference to System.Configuration from anywhere (it is not used at runtime, we just need to satisfy the build):

        <ItemGroup>
          <Reference Include="System.Configuration">
            <HintPath>..\..\bin\System.Configuration.dll</HintPath>
          </Reference>
        </ItemGroup>
      

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              ptupitsyn Pavel Tupitsyn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: