Click here to Skip to main content
12,819,738 members (28,891 online)
Click here to Skip to main content
Add your own
alternative version


2 bookmarked
Posted 1 Dec 2010

Preventing Visual Studio from removing "using System"

, 8 Jan 2015 CPOL
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 11:26
memberChristian Amado14-Aug-12 11:26 
GeneralRe: My vote of 5 Pin
Sergey Alexandrovich Kryukov14-Aug-12 12:07
mvpSergey Alexandrovich Kryukov14-Aug-12 12:07 
GeneralRe: My vote of 5 Pin
Christian Amado14-Aug-12 12:09
memberChristian Amado14-Aug-12 12:09 

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.

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