Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Cannot build project with own libraries (The Assembly UnityEditor is referenced..)

Discussion in 'Editor & General Support' started by TiToMoskito, Mar 23, 2018.

  1. TiToMoskito

    TiToMoskito

    Joined:
    Jan 28, 2014
    Posts:
    34
    Hi,

    im writing my own network library and its seperated in three different libraries.
    SkyNet.UDP - based on enet
    SkyNet - Wrapper for SkyNet.UDP and several classes like Client, Server, PacketReader etc.
    SkyNet.Unity - Everything related with Unity

    When i try to build my project, i got this error:

    ArgumentException: The Assembly UnityEditor is referenced by SkyNet.Unity ('Assets/SkyNet/Assemblies/SkyNet.Unity.dll'). But the dll is not allowed to be included or could not be found.
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156)
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:162)
    UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:196)
    UnityEditor.BuildPipeline:BuildPlayer(EditorBuildSettingsScene[], String, BuildTarget, BuildOptions)
    SkyScenesWindow:BuildClient()
    UnityEditor.EditorApplication:Internal_CallDelayFunctions()



    Win32Exception: Das System kann die angegebene Datei nicht finden.
    System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
    System.Diagnostics.Process.Start () (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
    (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
    System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
    SkyScenesWindow.BuildClient () (at <42f486bb72774f09aa3cc285f661342e>:0)
    UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:136)


    Thats my folder hierarchy: