We could also print message when we see System.Security.VerificationException exception and coverage is enabled. This can be added to TestPlatform or we could have special instrumentation for constructors of System.Security.VerificationException and if we see it was thrown we could print Warning from code coverage collector
Add documentation around UseVerifiableProbes option on site: https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/ide/troubleshooting-code-coverage?toc=%2Fvisualstudio%2Ftest%2Ftoc.json&view=vs-2022 There should be info that if .NET Framework is used and System.Security.VerificationException is thrown by tests verifiable probes should be enabled.
We could also print message when we see System.Security.VerificationException exception and coverage is enabled. This can be added to TestPlatform or we could have special instrumentation for constructors of System.Security.VerificationException and if we see it was thrown we could print Warning from code coverage collector