Why are non-dependent DLLs copied into the project Bin folder?

Gary Fuhr 96 Reputation points
2021-06-09T20:57:55.917+00:00

Why are the following files dumped into the Bin folder when our application does not require them?
Problem is the files are then distributed into production environment. Why distribute DLLs that are not required?
Is there a way to tell Visual Studio to not copy these files into the Bin folder?

TIA, Gary.

EnvDTE.dll
EnvDTE80.dll
Microsoft.Build.Framework.dll
Microsoft.Build.Tasks.Core.dll
Microsoft.Build.Utilities.Core.dll
Microsoft.MSXML.dll
Microsoft.VisualStudio.ComponentModelHost.dll
Microsoft.VisualStudio.Data.Core.dll
Microsoft.VisualStudio.Data.Services.dll
Microsoft.VisualStudio.Debugger.Interop.11.0.dll
Microsoft.VisualStudio.Debugger.InteropA.dll
Microsoft.VisualStudio.Designer.Interfaces.dll
Microsoft.VisualStudio.Designer.Interfaces.xml
Microsoft.VisualStudio.GraphModel.dll
Microsoft.VisualStudio.ManagedInterfaces.dll
Microsoft.VisualStudio.OLE.Interop.dll
Microsoft.VisualStudio.ProjectAggregator.dll
Microsoft.VisualStudio.Shell.Immutable.10.0.dll
Microsoft.VisualStudio.Shell.Immutable.10.0.xml
Microsoft.VisualStudio.Shell.Immutable.11.0.dll
Microsoft.VisualStudio.Shell.Immutable.11.0.xml
Microsoft.VisualStudio.Shell.Immutable.12.0.dll
Microsoft.VisualStudio.Shell.Immutable.12.0.xml
Microsoft.VisualStudio.Shell.Immutable.14.0.dll
Microsoft.VisualStudio.Shell.Immutable.14.0.xml
Microsoft.VisualStudio.Shell.Interop.10.0.dll
Microsoft.VisualStudio.Shell.Interop.11.0.dll
Microsoft.VisualStudio.Shell.Interop.8.0.dll
Microsoft.VisualStudio.Shell.Interop.9.0.dll
Microsoft.VisualStudio.Shell.Interop.dll
Microsoft.VisualStudio.TemplateWizardInterface.dll
Microsoft.VisualStudio.TemplateWizardInterface.xml
Microsoft.VisualStudio.TextManager.Interop.10.0.dll
Microsoft.VisualStudio.TextManager.Interop.8.0.dll
Microsoft.VisualStudio.TextManager.Interop.dll
Microsoft.VisualStudio.VSHelp.dll
Microsoft.VisualStudio.WCFReference.Interop.dll
Microsoft.VisualStudio.WCFReference.Interop.xml
stdole.dll
VSLangProj.dll
VSLangProj2.dll
VSLangProj80.dll

Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2021-06-09T21:42:08.917+00:00

    The assemblies you list are all VS support assemblies. What kind of project are you building exactly? Are you targeting .NET Framework or .NET Core/5? Have you looked at the list of dependencies in your project(s) to see what references are actually being used?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.