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

  • Home
  • SEARCH
  • 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 3359474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:52:35+00:00 2026-05-18T02:52:35+00:00

NCover has an attribute IgnoreFromCoverage that allows for code to be marked for exclusion

  • 0

NCover has an attribute IgnoreFromCoverage that allows for code to be marked for exclusion during code coverage analysis. Is there a way to do this with the VSTS Code Coverage Tools?

Obvious uses for this would be auto property getters and setters, non obvious uses may be code generated by R# equals implementation or ORM generated code.

  • 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-05-18T02:52:36+00:00Added an answer on May 18, 2026 at 2:52 am

    For Visual Studio 2010 you can use the ExcludeFromCodeCoverage attribute. You can apply the attribute to an entire class or to methods within a class. See MSDN for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

has anyone got NCover, TypeMock and MSTest to work together? and if so how.
I generate a coverage.xml output file with the following command. C:\Program Files\NCover\NCover.Console.exe //reg //w
I am trying to integrate NCover 2 into TeamCity 5.0.1, and since I have
we are using NCover from http://www.ncover.com/ For our application we have 6 different solution
I have a c# unit test project that is compiled for AnyCPU. Our build
First, I know about this: How would you organize a Subversion repository for in
My question is really the same as this one Finding out what exceptions a
I'm setting up CI at present using Thoughtworks Studios' Cruise, Gallio to run xunit.net
Using TeamCity running an MsBuild task for an MVC2 C# application, we successfully run
Our team recently upgraded to TeamCity 4.5.4 but we're having trouble with TeamCity running

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.