-rootnamespace
Specifies a namespace for all type declarations.
Syntax
-rootnamespace:namespace
Arguments
Term | Definition |
---|---|
namespace |
The name of the namespace in which to enclose all type declarations for the current project. |
Remarks
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. |
Example
The following code compiles In.vb
and encloses all type declarations in the namespace mynamespace
.
vbc -rootnamespace:mynamespace in.vb
See also
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за