Is it bad to leave unused assemblies by default in the help folder?

As a rule, I do not use some of them in any project that I am working on (for example, System.XML, System.XML.Linq).

Are there any drawbacks in leaving default assemblies that I will not use in my project?

alt text

+4
source share
4 answers

Unused reference assemblies are removed by the compiler.

Create a new console application in VS and it will be used by default for multiple builds. Compile your empty program and open it in the reflector, and you will see that it refers only to mscorlib. The rest are deleted.

The same applies to unused using statements. The compiler deletes them.

You might want to remove unused links and use them to maintain cleanliness and readability.

+2
source

No, there is no shortage. They are used only to resolve your code against assembly metadata, and if you do not use any elements in the assembly that are referenced, this will not affect the output of your project at all.

0
source

No, the C # compiler ignores assemblies that are not actually used by the application.

0
source

I get rid of what I do not use. Similarly, I get rid of unused ads.

0
source

All Articles