**Describe the bug** From [the documentation](https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/MSBuildIntegration.md#excluding-from-coverage): <img width="1302" height="457" alt="Image" src="https://github.com/user-attachments/assets/14089c3d-9af6-4451-8073-ced9d6fad3f3" /> The problem is that at least all async code is excluded from code coverage as it is stated in the [dotnet documentation](https://learn.microsoft.com/en-us/visualstudio/test/customizing-code-coverage-analysis?view=vs-2022#include-or-exclude-assemblies-and-members): <img width="904" height="204" alt="Image" src="https://github.com/user-attachments/assets/1b5eb378-be88-4449-8b2e-286861516d7f" /> **Expected behavior** The given example should not add unwanted behavior. Removing `CompilerGeneratedAttribute` from the example could be a good start **Actual behavior** By using the given example, the code coverage is higher than expected.