How do you enable Visual Basic.NET namespace by default?

后端 未结 1 1059
南笙
南笙 2021-01-14 10:07

I\'m coming from C# background and in Visual Studio. The namespace is shown by default but not in Visual Basic. Is there an option to enable namespace to be shown in Visual

相关标签:
1条回答
  • 2021-01-14 10:33

    VB.Net has a concept of default namespace for a project. Any file created in the project which does not contain an explicit namespace will be intsead included in the default namespace.

    If you don't like this behavior you can disable it from the project property page (right click on the project and select properties). Go to the Application tab and clear the Root Namespace text box. This will force you to provide a namespace for every type you define.

    0 讨论(0)
提交回复
热议问题