Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Failed compilation: Unity3D.Searcher imports bad versions of System.Memory & System.Buffers

Discussion in '2021.2 Beta' started by strich, Sep 17, 2021.

  1. strich


    Aug 14, 2012
    FogBugz case 1366164.
    Using Windows 10 Unity3D 2021.2.0b12.

    We cannot compile our project using Mono + .NET Standard or Mono + .NET Framework due to the following error(s) in our code:
    x\BuildSyncOffsets.cs(93,98): error CS0433: The type 'Span<T>' exists in both 'System.Memory, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    If I review where Span<T> goes in Visual Studio I get the following decompiled code sig:
    #region Assembly System.Memory, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
    // D:\...\Library\PackageCache\com.unity.searcher@4.8.0\Editor\Lucene\System.Memory.dll
    // Decompiled with ICSharpCode.Decompiler

    I cannot remove this module as it is a core plugin that is used by other core Unity modules.
    Last edited: Sep 17, 2021
  2. DeadReckoned


    Jul 4, 2013
    I'm also seeing this error in relation to classes inside System.Memory & System.Buffers, both of which show up in Searcher. The issue occurs in b9 onwards. b8 seems to compile fine.