How to avoid loading unnessecary assemblies
问题 ASP.NET .NET 4.6 MVC4 application loads unnessecary assemblie, eq. System.Data.OracleClient . Oracle is not used. Assembly dependencies are created using code in controller var sb = new StringBuilder(); foreach (Assembly b in AppDomain.CurrentDomain.GetAssemblies()) { sb.AppendLine(b.FullName); foreach (AssemblyName an in b.GetReferencedAssemblies()) sb.AppendLine(" " + an.Name); } Output is below. According to this System.Web references to System.Design and System.Design references to System