Search Issue Tracker

Fixed in Unity 2017.3

Votes

1

Found in

5.6.3f1

Issue ID

941182

Regression

Yes

DLL files are not excluded during building for standalone platform, even though they are selected to be excluded

Scene Management

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Workaround is possible

To reproduce:

1. Open the project, attached by the user (TestCreatingDll.zip)
2. In the Project view, select TestDll_Editor asset
3. In the Inspector, check Any Platform. In the Exclude Platforms section, Editor should be checked off, everything else should be checked on
4. In the Project view, select TestDll_Standalone asset
5. In the Inspector, check any Platform. In the Exclude Platforms section, Standalone should be checked off, everything else should be checked on
6. Build the project for standalone
7. Observe the console

Expected: if a DLL is set up that it should be ignored when building standalone, then it should be ignored

Reproduced in 5.6.0a1, 5.6.0f3, 5.6.3f1, 2017.1.0p3, 2017.2.0b7, 2017.3.0a4
Did not reproduce in 5.5.4p2
Regression introduced in 5.6.0a1

Fixed in 2017.3.0a7

Comments (1)

  1. 8de74d5d2f6f84c4e86c44d1ab101382?d=mm

    tomerpeledNG

    Sep 17, 2017 14:25

    I think that the fix for that caused another bug:

    After updating to Patch 2017.1.1p2 , which includes this fix, I'm getting the following exception when trying to build to Android Platform. (It worked before updating with the patch):

    ArgumentException: The Assembly Newtonsoft.Json is referenced by My.Shared ('Assets/My.Shared.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:142)
    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:148)
    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:148)
    UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
    UnityEditor.HostView:OnGUI()

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.