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. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    803
    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