Search Unity

2020.1 Project upgrade issue: references strong named Newtonsoft.Json in a different folder

Discussion in 'Scripting' started by ScottAdams, Nov 4, 2020.

  1. ScottAdams

    ScottAdams

    Joined:
    Nov 23, 2016
    Posts:
    72
    I am trying to solve the following issue when upgrading project from 2019.4 to 2020.1


    Assembly 'Assets/Plugins/SocketIoClientDotNet.dll' will not be loaded due to errors:
    SocketIoClientDotNet references strong named Newtonsoft.Json in a different folder, versions has to match. Assembly references: 9.0.0.0 Found in project: 8.0.0.0.

    I have found some info at the following, but I haven't been able to resolve my problem.

    https://forum.unity.com/threads/err...es-depending-on-which-folder-it-is-in.766583/

    and
    https://forum.unity.com/threads/edi...ken-assembly-could-not-load-signature.754508/
     
  2. spreddy_unity

    spreddy_unity

    Joined:
    Nov 13, 2020
    Posts:
    4
    Hey ScottAdams,
    I'm getting the below issue.
    '.../CookieManager.dll' will not be loaded due to errors:
    CookieManager references strong named Newtonsoft.Json Assembly references: 9.0.0.0 Found in project: 8.0.0.0.

    If I get Newtonsoft.Json from Nuget It throughs this issue in the android build, in editor it works fine. The only possible way is to use
    https://github.com/jilleJr/Newtonsoft.Json-for-Unity
    OR
    https://assetstore.unity.com/packag...9.1142919471.1610708888-2117787742.1610708888
    If I use assemblies from these I get "reference strong named" issue.

    Are you able to solve the issue of strong named reference? If so please guide me. Thank you.