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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

NetworkBehaviour work around breaks Cloud builds

Discussion in 'Unity Build Automation' started by HandyManStudios, Apr 10, 2017.

  1. HandyManStudios

    HandyManStudios

    Joined:
    May 29, 2014
    Posts:
    17
    So I'm using a work around for NetworkBehaviours in DLLs, which involves copying the UnityEngine.Networking.DLL into the plugin folders in the project so it will see the NetworkBehaviours within an external DLL we have written. I disabled this DLL for standalone builds as this of course will cause a conflict and is only a work around so that the behaviours are visible in the editor.

    This worked fine till I tried to use the cloud service to make a build for some reason it seems to be ignoring my flag that told it to NOT use the UnityEngine.Networking.DLL copy I've made and its throwing errors about it being loaded twice. Is there some kind of flag I can set to make it ignore this?

    Error:
    Code (CSharp):
    1. 2445: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-firstpass.dll
    2. 2446: [Unity] Compilation failed: 1 error(s), 0 warnings
    3. 2447: [Unity] error CS1704: An assembly with the same name `UnityEngine.Networking' has already been imported. Consider removing one of the references or sign the assembly
    4. 2448: [Unity] /UNITY_PATH/Unity/Unity-5_5_3f1/Unity.app/Contents/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll (Location of the symbol related to previous error)
    5. 2449: [Unity] Assets/Plugins/LockStepNetworking/UnityEngine.Networking.dll (Location of the symbol related to previous error)
    6. 2450: [Unity] - Finished compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll
    7. 2451: [Unity] error CS1704: An assembly with the same name `UnityEngine.Networking' has already been imported. Consider removing one of the references or sign the assembly
    8. 2452: [Unity] /UNITY_PATH/Unity/Unity-5_5_3f1/Unity.app/Contents/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll (Location of the symbol related to previous error)
    9. 2453: [Unity] Assets/Plugins/LockStepNetworking/UnityEngine.Networking.dll (Location of the symbol related to previous error)
     
  2. SophiaC

    SophiaC

    Unity Technologies

    Joined:
    Sep 6, 2016
    Posts:
    238
    Hello,

    Have you tried a clean build?

    - Sophia
     
  3. HandyManStudios

    HandyManStudios

    Joined:
    May 29, 2014
    Posts:
    17
    Yea, I've tried a clean build.
     
  4. HandyManStudios

    HandyManStudios

    Joined:
    May 29, 2014
    Posts:
    17
    I also tried manually clearing out the cache, no dice there either. same error.
     
  5. SophiaC

    SophiaC

    Unity Technologies

    Joined:
    Sep 6, 2016
    Posts:
    238
    What are you using for source control?
     
  6. HandyManStudios

    HandyManStudios

    Joined:
    May 29, 2014
    Posts:
    17
  7. SophiaC

    SophiaC

    Unity Technologies

    Joined:
    Sep 6, 2016
    Posts:
    238
  8. HandyManStudios

    HandyManStudios

    Joined:
    May 29, 2014
    Posts:
    17
    When I say I disabled it for standalone builds, I mean within the configuration of the DLL file (http://imgur.com/a/WCTNR) as far as I know there is no way to use #if defs for something like this, because its just sitting in the project.
     
  9. HandyManStudios

    HandyManStudios

    Joined:
    May 29, 2014
    Posts:
    17
    Still havent come up with a solution, honestly it seems like the unity cloud server is ignoring the DLL configs.
     
  10. SophiaC

    SophiaC

    Unity Technologies

    Joined:
    Sep 6, 2016
    Posts:
    238
    I have a suspicion about what could be happening. Could you PM me a link to your project?

    - Sophia