Search Issue Tracker

Fixed in 2017.3.0f3

Fixed in 2017.1, 2017.2

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

-

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 (2)

  1. 69a9410fc102231c9e445daec26bcff2?d=mm

    awesome-alex

    Oct 08, 2018 10:04

    I think this issue is back on Unity 2018.3.

    A list of all dll included in my project:
    Dependency assembly - System.Diagnostics.StackTrace.dll
    Dependency assembly - System.Globalization.Extensions.dll
    Dependency assembly - System.Runtime.Serialization.Xml.dll
    Dependency assembly - System.Xml.XPath.XDocument.dll
    Dependency assembly - netstandard.dll
    Dependency assembly - Mono.Security.dll
    Dependency assembly - System.ComponentModel.Composition.dll
    Dependency assembly - System.Configuration.dll
    Dependency assembly - System.Core.dll
    Dependency assembly - System.Data.dll
    Dependency assembly - System.Drawing.dll
    Dependency assembly - System.EnterpriseServices.dll
    Dependency assembly - System.IO.Compression.FileSystem.dll
    Dependency assembly - System.IO.Compression.dll
    Dependency assembly - System.Net.Http.dll
    Dependency assembly - System.Numerics.dll
    Dependency assembly - System.Runtime.Serialization.dll
    Dependency assembly - System.ServiceModel.Internals.dll
    Dependency assembly - System.Transactions.dll
    Dependency assembly - System.Xml.Linq.dll
    Dependency assembly - System.Xml.dll
    Dependency assembly - System.dll
    Dependency assembly - mscorlib.dll
    Dependency assembly - UnityEngine.UI.dll
    Dependency assembly - UnityEngine.Networking.dll
    Dependency assembly - UnityEngine.Timeline.dll
    Dependency assembly - Assembly-CSharp.dll

    And I can't with Visual Studio 7.6.8 remove dependencies, I'm stuck since a few hours on this.

  2. 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.