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
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Error: The type 'StandardFormat' exists in both 'System.Memory, Version=4.0.1.0, Culture=neutral, Pu

Discussion in '2021.2 Beta' started by aggaton, Oct 17, 2021.

  1. aggaton

    aggaton

    Joined:
    Jul 3, 2021
    Posts:
    113
    Hi,

    I wanted to try out version 2021.10b16 of unity since it supposedly have removed the shader limits which used to be 384 (from 256) in the past, however I ran into compile errors for a ZString plugin, I get a ton of these errors, this all works fine in 2021.1:

    Assets\UnityMultiplayerARPG\Core\LiteNetLibManager\Plugins\ZString\FormatHelper.cs(96,95): error CS0433: The type 'StandardFormat' exists in both 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Assets\UnityMultiplayerARPG\Core\LiteNetLibManager\Plugins\ZString\EnumUtil.cs(48,51): error CS0433: The type 'Span' exists in both 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Assets\UnityMultiplayerARPG\Core\LiteNetLibManager\Plugins\ZString\EnumUtil.cs(48,85): error CS0433: The type 'StandardFormat' exists in both 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Assets\UnityMultiplayerARPG\Core\LiteNetLibManager\Plugins\ZString\FormatHelper.cs(128,108): error CS0433: The type 'StandardFormat' exists in both 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Assets\UnityMultiplayerARPG\Core\LiteNetLibManager\Plugins\ZString\FastNumberWriter.cs(11,42): error CS0433: The type 'Span' exists in both 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Assets\UnityMultiplayerARPG\Core\LiteNetLibManager\Plugins\ZString\FormatHelper.cs(97,35): error CS0433: The type 'IBufferWriter' exists in both 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
     
  2. runner78

    runner78

    Joined:
    Mar 14, 2015
    Posts:
    789
    Look for a System.Memory.dll in your asset folder and try to delete it (backup before).
     
  3. aggaton

    aggaton

    Joined:
    Jul 3, 2021
    Posts:
    113
    Thanks that is what I ended up doing