Project-Level Default Imports
By default, Visual Studio 2015 adds some auto-generated Imports
directives each time you create a new Visual Basic project, so you do not need to manually add such statements. Default Imports
are specific to the project type, so if you create a Console application, there will be Imports
related to these kinds of applications. If you create a web application, there will be Imports
related to the most common namespaces for web applications and so on. You can easily add project-level namespaces via the My Project window. In the References tab, you can find a group box named Imported namespaces, as shown in Figure 9.2.
You can click the check box corresponding to each ...
Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.