Click here to Skip to main content
11,806,575 members (38,135 online)
Click here to Skip to main content

Preventing Visual Studio from removing "using System"

, 8 Jan 2015 CPOL 3.9K 2
Rate this:
Please Sign up or sign in to vote.
Shave all you create with Occam's Razor.

Here is the best alternative:

  • Critically look at your project's references and remove everything you do not use as soon as possible;
  • Always use VS's Organize Usings -> Remove Unused Usings as soon as possible;
  • Never be afraid if some using clause you planned to use has gone; try to avoid adding references too soon or "in advance", because later you may change your mind; keeping dependencies to the absolute minimum and adding them only as needed all the time is much easier than removing redundant dependencies later;
  • Remember: System is no different from any other;
  • Never forget to shave all you create with Occam's Razor! See also: .


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Sergey Alexandrovich Kryukov
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 5 Pin
Christian Amado14-Aug-12 10:26
memberChristian Amado14-Aug-12 10:26 
GeneralRe: My vote of 5 Pin
Sergey Alexandrovich Kryukov14-Aug-12 11:07
mvpSergey Alexandrovich Kryukov14-Aug-12 11:07 
GeneralRe: My vote of 5 Pin
Christian Amado14-Aug-12 11:09
memberChristian Amado14-Aug-12 11:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.151002.1 | Last Updated 8 Jan 2015
Article Copyright 2010 by Sergey Alexandrovich Kryukov
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid