Roslyn-analyzers: .net core code metrics

Created on 3 Jan 2018  路  9Comments  路  Source: dotnet/roslyn-analyzers

_From @EncoderPtd on December 13, 2017 4:3_

As we know there's a useful function for .net projects:
Analyze -> Calculate Code Metrics
It can give out some detailed information of the project.

May i ask if it is now supported for .net core projects? I can't find it. :)
Which repository should this issue be placed in?

_Copied from original issue: dotnet/cli#8228_

Feature Request

All 9 comments

Is this a Code Metric supported in VS?

@jinujoseph is this supported by analyzers?

_From @EncoderPtd on December 13, 2017 4:50_

Yeah, it's in VS, provides calculation of code lines and some code relation analysis.

Code metrics is a feature implemented on legacy FXCop Introspection engine. Making CodeMetrics work for .net core projects would require the FXCop assembly resolution to work for these assemblies - unless we are planning to add special analyzers that implement similar analysis as code metrics engine (which might probably be lesser work, but still is non-trivial).

Hi! Is there any update on this feature? Or alternative solution?

We are currently investigating adding this support in Dev16.0 P1. I will keep this issue updated with any new information.

Fixed with an internal checkin. This support should be available in Dev16 Preview1.

@mavasani so what do I need to do to use this?

@eluchsinger You will need to wait for the first public preview of Dev16 before you can get this support in VS.

@eluchsinger Alternatively, you can use our ported Metrics.exe command line tool to generate an xml code metrics report. See https://developercommunity.visualstudio.com/solutions/305903/view.html for details.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SixFive7 picture SixFive7  路  4Comments

paulomorgado picture paulomorgado  路  3Comments

Grauenwolf picture Grauenwolf  路  3Comments

paulomorgado picture paulomorgado  路  3Comments

fschlaef picture fschlaef  路  4Comments