调用doxygen

问题描述

如何将以下行为从Windows cmd转换为Windows Powershell:

( type Doxyfile & echo PROJECT_NUMBER=1.0 ) | doxygen.exe -

我已经针对Windows cmd下的这个问题问过 Configure some variables in command line when calling doxygen

解决方法

Powershell的语法确实有所不同。在其他问题的帮助下,我进行了以下工作:

&{type Doxyfile; echo PROJECT_NUMBER=1.0} |doxygen -