DocFX generating documentation for a project in a different folder

1.2k views Asked by At

I have the structure of the file:

enter image description here

I want to use DocFX to create documentation of my project but my problem is file docfx.json. My project is in another folder like C:\Test\ConsoleApp1\ConsoleApp1 not in src folder in docFx, when I try to change localization docFx don't find the project. How do I set this path?

I introduced the correct path but still doesn't work.

"metadata": [
{
  "src": [
    {
      "files": [
        "src/**.csproj"
      ]
    }
  ],
  
1

There are 1 answers

0
Yuby On BEST ANSWER

Try this:

"metadata": [
{
  "src": [
    {
      "files": [ "src/**.csproj" ],
      "src": "../ConsoleApp1"
    }
  ],

Here is an example from DocFX's own documentation site.