Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch off DocFX in visual studio in debug mode while active in release mode?

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.

like image 675
Sorush Avatar asked Feb 01 '26 13:02

Sorush


1 Answers

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

like image 134
Suchiman Avatar answered Feb 03 '26 01:02

Suchiman