Imports a namespace from a specified assembly.
/imports:namespace[, namespace]
The /imports option imports any namespace defined within the current set of source files or from any referenced assembly.
The members in a namespace specified with /imports are available to all source code files in the compilation. Use the
To set /imports in the Visual Studio integrated development environment
To set /import programmatically
The following code compiles when /imports:system is specified:
Module MyModule
Sub Main
Console.WriteLine("test")
' Otherwise, would need
' System.Console.WriteLine("test")
End Sub
End Module