无法使用Visual Studio 2019分析代码覆盖率 [英] Can't analyze code coverage with Visual Studio 2019
问题描述
我正在使用Visual Studio 2019开发和测试.NET Core应用程序。几个月前,我记得我所有的测试都是成功的,并且能够启动代码覆盖率分析。今天,我启动了代码覆盖率分析,但是失败了(测试总是成功的):
生成的空结果:未检测到二进制文件。确保运行了
测试,加载了所需的二进制文件,具有匹配的符号文件,
,并且没有被自定义设置排除。有关
的详细信息,请参见I'm using Visual Studio 2019 to develop and test a .NET Core application. A few months ago, I remember that all my tests are successful and I was able to launch a code coverage analyze. Today I launched a code coverage analyze but it fails (tests are always successful):
Empty results generated: No binaries were instrumented. Make sure the tests ran, required binaries were loaded, had matching symbol files, and were not excluded through custom settings. For more information see https://go.microsoft.com/fwlink/?LinkID=253731
I have always upgraded my Visual Studio and the current version I have now is Microsoft Visual Studio Enterprise 2019 (Version 16.4.0)
Any experience or feedback about this problem?
解决方案Strange enough setting the "Processor Architecture" to x64 worked for me:
See screenshot
这篇关于无法使用Visual Studio 2019分析代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!