How many code rows in my solutions ?

Dani_S 4,896 Reputation points
2025-12-15T04:48:32.7733333+00:00

Hi,

How can I know how many code rows in my solutions ?

My solution is consists of:

1.Console App project in .NET 9.

2.Class Library project - netstandard2.0 .

3.Wpf App project - in .NET 9.

4.Xunit Tests project -in .NET 9.

I'm using VS 2026.

Thanks in advance,

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-15T04:48:40.99+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To determine the number of code rows in your solution, you can use the Code Metrics feature in Visual Studio. Here’s how you can do it:

    1. Open your solution in Visual Studio.
    2. Go to the menu bar and select Analyze > Calculate Code Metrics > For Solution. This will generate code metrics for all projects within your solution.
    3. In the Code Metrics Results window, you can view various metrics, including lines of code for each project.

    This method will give you a comprehensive overview of the code rows across all your projects in the solution.


    References:


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.