Multiple projects using the same namespace #8204
Unanswered
frederikprijck
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I'm having this same issue too, does anyone know if a solution to this exists? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋
I am trying to create a documentation site that gets build using multiple projects. To demonstrate the issue I am having, I simplified my setup to the following:
As you can see, both projects share the same namespace, and even has the same name for the class. Even though in reality both projects also have classes unique for that project, there are lot of classes that use the exact same name and namespace.
The use-case here is that we have a couple of platform specific SDKs that share the same API for the most part (think Xamarin, WinForms, WPF, ...). Preferably, I would want to keep the structure of the project and its namespacing the same as it is today, as it would be a breaking change for us to be changing these around.
With the above structure, and the docfx.json as seen here: https://github.com/frederikprijck/docfx-multiple-projects/blob/main/docs-source/docfx.json, we noticed the output
toc.html
is using an incorrecthref
:As you can see, the
name
is correct, but thehref
usesapi-a
for bothA
andB
.Even though the
toc.html
is wrong, the pageapi-b/Project.html
does exist, as you can see here: https://github.com/frederikprijck/docfx-multiple-projects/blob/main/docs/api-b/Project.html.Additionally, I noticed that links in
api-b/Project.html
can point toapi-a
when the type in question exists in api-a as well, e.g.: https://github.com/frederikprijck/docfx-multiple-projects/blob/main/docs/api-b/Project.html#L80. I would have expected this link to point toapi-b/Project.class1.html
instead.Would anyone be aware of anything I am doing wrong that results in the incorrect rendering, or is using the same namespace and class name in multiple project not something that's supposed to be supported?
Possibly related: #8018
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions