Project.DefaultNamespace Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The default namespace of the project ("" if not defined, which means global namespace), or null if it is unknown or not applicable.
public string? DefaultNamespace { get; }
member this.DefaultNamespace : string
Public ReadOnly Property DefaultNamespace As String
Property Value
Remarks
Right now VB doesn't have the concept of "default namespace". But we conjure one in workspace by assigning the value of the project's root namespace to it. So various feature can choose to use it for their own purpose. In the future, we might consider officially exposing "default namespace" for VB project (e.g. through a "defaultnamespace" msbuild property)