[英]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. 我将DocFX添加到visual studio中,为我的C#代码生成Web文档。 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?
当我不需要时,有没有办法在visual studio中关闭它?
I know it is possible to uninstall/install it but this is the last resort. 我知道可以卸载/安装它,但这是最后的选择。
You can edit the .csproj and add this line 您可以编辑.csproj并添加此行
<BuildDocFx Condition=" '$(Configuration)'=='Debug' ">false</BuildDocFx>
to the first <PropertyGroup>
to disable docfx during debug builds 到第一个
<PropertyGroup>
以在调试版本期间禁用docfx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.