Click here to Skip to main content
15,885,278 members
Articles / Macros
Alternative
Tip/Trick

Preventing Visual Studio from removing "using System"

Rate me:
Please Sign up or sign in to vote.
4.33/5 (4 votes)
8 Jan 2015CPOL 9.7K   2   3
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: .

License

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


Written By
Architect
United States United States
Physics, physical and quantum optics, mathematics, computer science, control systems for manufacturing, diagnostics, testing, and research, theory of music, musical instruments… Contact me: https://www.SAKryukov.org

Comments and Discussions

 
GeneralMy vote of 5 Pin
Christian Amado14-Aug-12 10:26
professionalChristian Amado14-Aug-12 10:26 
GeneralRe: My vote of 5 Pin
Sergey Alexandrovich Kryukov14-Aug-12 11:07
mvaSergey Alexandrovich Kryukov14-Aug-12 11:07 
GeneralRe: My vote of 5 Pin
Christian Amado14-Aug-12 11:09
professionalChristian Amado14-Aug-12 11:09 
You're welcome =)
Christian Amado
MCITP | MCTS | MOS | MTA
Olimpia ☆ ★★★

Please mark as answer, if it helps.

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

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