visual studio 2017 could not identify platform on calculating code metrics with dotnet core 解决方案

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

我在 visual studio 2017 的 dotnet 代码项目上收到代码分析错误。不得不说在其他项目中一切正常

我进行了搜索,但没有什么特别的方法可以解决这个错误。确切的错误是:

Message: An error occurred while calculating code metrics for target file 'E:\Shokri\Project\Kalgram\Kavenegar\bin\Debug\netcoreapp2.2\Kavenegar.dll' in project Kavenegar. Could not identify platform for 'E:\Shokri\Project\Kalgram\Kavenegar\bin\Debug\netcoreapp2.2\Kavenegar.dll'.

代码指标尚不适用于 dotnet 核心项目。错误信息很糟糕。您可以使用以下链接为该功能投票:

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

.NET Core 的代码指标现已在 VS2019 中可用。