This message was deleted.
# package-authoring
s
This message was deleted.
b
Found the culprit in
codegen/dotnet/gen.go
Method `namespaceName`splits namespaces by using the
-
character, where I used
/
. @ancient-policeman-24615 @enough-garden-22763 Am I wrong with my namespace declarations using the
/
character, or is it a bug?
@tall-librarian-49374 do you have an opinion on this issue above in the dotnet codegen, wether if it's a bug or I'm specifying (sub-)namespace the wrong way?
a
It looks like this is a manifestation of https://github.com/pulumi/pulumi-dotnet/issues/25. I’ll ask if we can get this prioritized.
🚀 1
b
@ancient-policeman-24615 just opened a pull request to fix this (hopefully) @echoing-dinner-19531 got confused because I didn't create a separate issue and wasn't aware of your answer here so I opened the PR without a connected issue. Sorry for that! https://github.com/pulumi/pulumi/pull/14295
e
I'm looking at this now. I think it's a bit more involved than just splitting on "/"
👍🏻 1
b
@echoing-dinner-19531 I had the same hunch 🙂 But replacing "-" with "/" simply fixed my issue described above with the Fortios provider. However, I would prefer if the dotnet codegen would also create subdirectories instead of treating the namespaces as one namespace with Pascal casing. Just like the other codegens can do.
e
Yup, "my/module" should be "My.Module" with the nested directories to match
🚀 1
b
Exactly!
e
b
Awesome! Renders my PR obsolete. Let me close it.