visual-studio.net-coredocfx

DocFX generating documentation for a project in a different folder


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"
      ]
    }
  ],
  

Solution

  • Try this:

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

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