In our managed package we have 'XYZ' namespace in most of our product sourcecode.
When we try to get this to DX, as per their guide here we must create an unmanaged package.
Salesforce doesn't allow creating an unmanaged package with sourcecode which has references to a namespace and throws below Error.
Unmanaged packages cannot explicitly reference this organization's namespace.
I think this is fair because we cannot ship an unmanaged package with a namespace.
But we noticed custom objects can be packaged as unmanaged with namespace, and even after we moved to DX, they still shows up in DX orgs with namespace.
Is there a way that we can transport our sourcecode with managed package references to DX? Appreciate any help, Thanks.