Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:03:40+00:00 2026-06-17T12:03:40+00:00

I am having some trouble getting OpenCover to work I have the following folder

  • 0

I am having some trouble getting OpenCover to work

I have the following folder structure

  • \Tools
  • \Tools\Nunit
  • \Tools\OpenCover
  • \Buildartifacts

When my code compiles, all the compiled code is generated into the BuildArtifacts folder. This includes the dll’s and corresponding .pdb files

I am struggling to get OpenCover to run

From powershell I am entering the following command from the root folder:

.\tools\OpenCover\OpenCover.Console.exe -register:user
-target:.\tools\nunit\nunit-console.exe -targetargs:”.\buildartifacts\MVCControllerTests.dll /noshadow” -filter:+[*]* -output:.\coverage.xml

However I keep getting the message:
Committing…

No results – no assemblies that matched the supplied filter were
instrumented
this could be due to missing PDBs for the assemblies that match the filter
please review the output file and refer to the Usage guide (Usage.rtf)

I have looked at OpenCover/NUnit can't find PDB files, and I have the /noshadow switch present in my targetargs

I attempted to move /noshadow to be the first in the targetargs, but then I get errors from nunit

I have also updated nunit-console.exe.config and added the following line to the startup node to ensure that all the tests are executed within .net4 instead of .net3.5

<supportedRuntime version=”v4.0.30319″>

But that made no difference.

When I viewed coverage.xml file, even though I had the noshadow flag, it still appears that nunit is doing a shadowcopy

eg, this was present:

C:\Users\darren\AppData\Local\Temp\nunit20\ShadowCopyCache\10344_634940293912865718\Tests_275832668\assembly\dl3\db34ecee\a0f236ee_a7f4cd01\TABusinessInterface.DLL

Appreciate any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:03:41+00:00Added an answer on June 17, 2026 at 12:03 pm

    The OpenCover WIKI notes that when using PowerShell you should wrap the whole argument in quotes i.e.

    -targetargs:".\buildartifacts\MVCControllerTests.dll /noshadow"
    

    becomes

    "-targetargs:.\buildartifacts\MVCControllerTests.dll /noshadow"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been having some trouble getting the following to work: <IfModule mod_rewrite.c> DirectoryIndex
I'm having some trouble getting a view to flip. I have the following code
I am having some trouble getting this simple code to work: #pragma once #include
I'm having some trouble getting the code statement beneath to work as intended. The
I'm having some trouble getting this to work. This is the code I want
Im having some trouble getting the syntax right. I have a movie clip that
I'm having some trouble getting binding to work with JQuery. <iframe id=wufooFormz7x3k1 height=281 allowtransparency=true
I am having some trouble getting Elmah to work with url routing in an
I'm having some trouble getting debug mode to work on my android phone. I
I'm having some trouble getting personal contacts of some users I have in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.