Alex Rivera | Logout

Possible to override VB.NET root namespace?

Asked 2009-01-26T13:26:20.493
16

VB.NET automatically prefixes the root namespace set in the project properties to the namespace of each class. This is different from C#, where the full namespace must be declared each time.

Is it possible to override this behaviour, creating a namespace outside of the root namespace?

Edit
Report

2 Answers

5

They now implemented it:

Namespace Global.MyNamespace

End Namespace
answered 2013-06-28T08:30:06.820
4

You can change the namespace of the entire project by going to properties on the project. else you will have to have a empty root namespace and set the name space in each file with the

Namespace test
    class.....
End Namespace
answered 2009-01-26T13:37:11.610

Your Answer