[codegen/dotnet] - Fix enum naming for k8s
@@ -187,8 +187,10 @@ func (mod *modContext) tokenToNamespace(tok string, qualifier string) string {
pkg, nsName := "Pulumi."+namespaceName(mod.namespaces, components[0]), mod.pkg.TokenToModule(tok)
if mod.isK8sCompatMode() {
+ if qualifier != "" {
return pkg + ".Types." + qualifier + "." + namespaceName(mod.namespaces, nsName)
}
+ }
typ := pkg
if nsName != "" {
