Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"
      ]
    }
  ],
  
like image 682
Andreas Avatar asked Apr 17 '26 03:04

Andreas


1 Answers

Try this:

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

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

like image 110
Yuby Avatar answered Apr 20 '26 12:04

Yuby



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!