Can I use Microsoft.CodeCoverage.Console to instrument and collect code coverage for a windows service using .net 4.8?

John Hoffman 1 Reputation point
2022-10-23T12:46:15.903+00:00

The Microsoft.CodeCoverage.Console documentation indicates that all .net code can be instrumented and code coverage collected but I get this error on the command line:

Microsoft.CodeCoverage.Console.exe instrument Blah.Service.exe
Unable to instrument this binary because the architecture is not supported.

Can I use Microsoft.CodeCoverage.Console to instrument and collect code coverage for a windows service using .net 4.8?

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
331 questions
{count} votes