Reference: https://github.com/ImmediatePlatform/dotnet-templates/blob/main/src/ImmediatePlatform.Templates/content/Handler/.template.config/template.json#L17-L22 As far as I can tell, there is no built-in way to get the folder-based namespace for a file. I attempted to get the current project's root namespace according to https://github.com/dotnet/templating/wiki/Binding-and-project-context-evaluation#binding-to-msbuild-properties, but it does not seem to work consistently.
Reference: https://github.com/ImmediatePlatform/dotnet-templates/blob/main/src/ImmediatePlatform.Templates/content/Handler/.template.config/template.json#L17-L22
As far as I can tell, there is no built-in way to get the folder-based namespace for a file. I attempted to get the current project's root namespace according to https://github.com/dotnet/templating/wiki/Binding-and-project-context-evaluation#binding-to-msbuild-properties, but it does not seem to work consistently.