Removing Included DLL's from Build

The solution to this doesn’t appear to be anywhere.

Mono dependencies included in the build

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 - Assembly-CSharp.dll

Dependency assembly - Unity.TextMeshPro.dll

Dependency assembly - Unity.Timeline.dll

Dependency assembly - UnityEngine.UI.dll

Build Report

Uncompressed usage by category (Percentages based on user generated assets only):

Textures 0.0 kb 0.0%

Meshes 0.0 kb 0.0%

Animations 0.0 kb 0.0%

Sounds 0.0 kb 0.0%

Shaders 0.0 kb 0.0%

Other Assets 0.5 kb 0.0%

Levels 4.7 kb 0.0%

Scripts 689.7 kb 4.9%

Included DLLs 13.2 mb 95.0%

File headers 12.2 kb 0.1%

Total User Assets 13.9 mb 100.0%

Complete build size 72.0 mb

Question is, how can I remove the unused DLL’s from the build to reduce size? Thanks.

The Unity provides a feature to strip unused code, and therefore the dll, for you.

Follow the steps below:

  • Select the menu Edit->Project Settings.
  • In the Project Settings dialog box, select Player.
  • In the Player select Other Settings.
  • Scroll down until the Optimization section.
  • Change the option Managed Striping Level in the dropdown list.

I strongly suggest to read the Unity official documentation Managed Code Stripping for further information.