Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Specifies a namespace for all type declarations.
-rootnamespace:namespace
Term | Definition |
---|---|
namespace |
The name of the namespace in which to enclose all type declarations for the current project. |
If you use the Visual Studio executable file (Devenv.exe) to compile a project created in the Visual Studio integrated development environment, use -rootnamespace
to specify the value of the RootNamespace property. See Devenv Command Line Switches for more information.
Use the IL Disassembler tool (Ildasm.exe
) to view the namespace names in your output file.
To set -rootnamespace in the Visual Studio integrated development environment |
---|
1. Have a project selected in Solution Explorer. On the Project menu, click Properties. 2. Click the Application tab. 3. Modify the value in the Root Namespace box. |
The following code compiles In.vb
and encloses all type declarations in the namespace mynamespace
.
vbc -rootnamespace:mynamespace in.vb
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now