Daily Usage Issues

Coverage is missing in VSIX Project (VS 2015)

Started by spolonski on 4,963 views

Hi Remco,

I noticed that Code Coverage marker is misssing in VSIX Projects.
Demo

As a workaround I will use code library. It is even better for a structure of code. Nevertheless maybe you can fix it.

Regards,
Sergei
Hi, thanks for sharing this issue.

The problem here is in the VSIX project template itself. This project contains a declaration as follows:

<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>

This breaks NCrunch's instrumentation, because the instrumentation relies on having a PDB file in the build output directory.

To fix this, change the code as such:

<CopyOutputSymbolsToOutputDirectory Condition="'$(NCrunch)' != '1'">false</CopyOutputSymbolsToOutputDirectory>

Post a reply

Log in to reply.