Export (0) Print
Expand All

How to: Change the Namespace for an Application (Visual Basic)

The Root Namespace property sets the base namespace for all files in the project. For example, if you set the root namespace to Project1, and you have a Class1 outside of any namespace in your code, its namespace would be Project1.Class1. If you have a Class2 within a namespace Order in code, its namespace would be Project1.Order.Class2.

It is also possible to clear the Root Namespace property, which allows you to manually specify the namespace structure of your project. For more information, see Namespace Statement.

To change the namespace for a project

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Application tab.

  3. In the Root namespace field, enter the name.

Community Additions

ADD
Show:
© 2014 Microsoft