Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't analyze code coverage with Visual Studio 2019

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?

like image 369
Ala Eddine JEBALI Avatar asked Dec 03 '22 09:12

Ala Eddine JEBALI


1 Answers

Strange enough setting the "Processor Architecture" to x64 worked for me:

See screenshot

enter image description here

like image 56
Erik Ljung Avatar answered Dec 21 '22 15:12

Erik Ljung