如何计算 Visual Studio 解决方案中的代码行数?

问题描述:

是否可以在整个解决方案中找到代码行数?我听说过 MZ-Tools,但是否有开源等效项?

Is it possible to find the number of lines of code in an entire solution? I've heard of MZ-Tools, but is there an open source equivalent?

Visual Studio 具有内置代码指标,包括代码行数:

分析 → 计算代码指标

Analyze → Calculate Code Metrics