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)
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for