Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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

    strich

    Joined:
    Aug 14, 2012
    Posts:
    374
    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=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, 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=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
    // D:\...\Library\PackageCache\com.unity.searcher@4.8.0\Editor\Lucene\System.Memory.dll
    // Decompiled with ICSharpCode.Decompiler 6.1.0.5902
    #endregion


    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

    DeadReckoned

    Joined:
    Jul 4, 2013
    Posts:
    6
    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.