3

I added DocFX to visual studio to generate web documents for my C# code. However, for every compilation it creates new documents which takes long time. Is there a way to switch it off in visual studio when I don't need it?

I know it is possible to uninstall/install it but this is the last resort.

Sorush
  • 3,275
  • 4
  • 28
  • 42

1 Answers1

5

You can edit the .csproj and add this line

<BuildDocFx Condition=" '$(Configuration)'=='Debug' ">false</BuildDocFx>

to the first <PropertyGroup> to disable docfx during debug builds

Suchiman
  • 1,636
  • 2
  • 20
  • 30