visual studio 2017 could not identify platform on calculating code metrics with dotnet core solutions

Code metrics is not available for dotnet core projects yet. The error message is terrible. You can vote for the feature using the links below:

https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/33459643--netcore-code-metrics

https://developercommunity.visualstudio.com/content/idea/351625/netcore-code-metrics.html


Code Metrics for .NET Core are now available in VS2019. enter image description here