Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Enter the 2020.2 Beta Sweepstakes for a chance to win an Oculus Quest 2.
    Dismiss Notice

Bug UnityEngine.UI.Tests.asmdef will not be compiled, because it has no scripts associated with it

Discussion in '2020.1 Beta' started by Peter77, Nov 16, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,206
    Opening a newly created Unity 2019.3.0b11 project in Unity 2020.1.0a11 displays the following warning:
    Code (CSharp):
    1. Assembly for Assembly Definition File 'Packages/com.unity.ugui/Tests/Runtime/UnityEngine.UI.Tests.asmdef' will not be compiled, because it has no scripts associated with it.
    2. UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget, String[])
     
  2. LuuMor

    LuuMor

    Joined:
    Feb 26, 2020
    Posts:
    1
    I got the same warning, when creating a new 3D project.
     
    ROBYER1 likes this.
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    2,229
    I couldn't reproduce the issue with 2020.1.0a25. There is a known issue that is similar though: https://issuetracker.unity3d.com/product/unity/issues/guid/1217747/

    If you get these kinds of warnings about other packages, a bug report would be appreciated.
     
    Last edited: Feb 28, 2020
  4. sp-LeventeLajtai

    sp-LeventeLajtai

    Joined:
    Jul 11, 2019
    Posts:
    6
    I think it's a bug fixed in 2020.1.0a16: "Scripting: Fixed issue where reimport writes "Assembly for asmdef File will not be compiled, because it has no scripts associated with it". (1185386)"

    However, the issue is also present in 2019.2 and 2020.1 has no release date, and at the same time, 1185386 is not searchable, so how can I verify that it has been fixed in 2019.4 (LTS)?
     
  5. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    2,229
    1185386 was fixed in 2019.3.0f5.
     
  6. nilay_141

    nilay_141

    Joined:
    Aug 20, 2020
    Posts:
    1
    Assembly for Assembly Definition File 'Packages/com.unity.2d.animation/Tests/Editor/Unity.2D.Animation.EditorTests.asmdef' will not be compiled, because it has no scripts associated with it.

    Got this error in both 2d and 3d project

    How to fix it?
     
unityunity