Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Coverage is missing in VSIX Project (VS 2015)
spolonski
#1 Posted : Thursday, February 2, 2017 1:28:03 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/11/2016(UTC)
Posts: 32
Location: Germany

Thanks: 6 times
Was thanked: 4 time(s) in 4 post(s)
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
Remco
#2 Posted : Thursday, February 2, 2017 11:05:09 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1287 time(s) in 1194 post(s)
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>
1 user thanked Remco for this useful post.
spolonski on 2/3/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download