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 8827621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:24:56+00:00 2026-06-14T07:24:56+00:00

I am at present developing a mvc4 project that comunicates to a set of

  • 0

I am at present developing a mvc4 project that comunicates to a set of wcf services. I am setting such up in tfs build for a team of developers.

I am very much a newbie to fxcop and code analysis in general. I am currently researching it and have some questions following this:

  • Is it recommended to use the rules that come with fxcop?
  • Should it be included as a build task during builds?
  • What is the value from it?
  • Are there guidelines to what rules to abide by or is it best to go with the default?
  • Is it correct to run the analysis as a post build event?

I am a newbie to fxcop and would like some feedback. I am as it is integrating stylecop in to my build.

  • 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-14T07:24:57+00:00Added an answer on June 14, 2026 at 7:24 am

    Take a look at this haacked blog post: http://haacked.com/archive/2012/07/05/turkish-i-problem-and-why-you-should-care.aspx.

    I think it answers most of your questions. Some of the pointers are:

    Is it recommended to use the rules that come with fxcop?

    For a new project I would enable all rules, and over time disable the ones you find distracting. For an existing project, I would enable minimal rules, and over time slowly add new rules and clean up the code as required.

    The code analysis rules are:

    • Design Warnings
    • Globalization Warnings
    • Interoperability Warnings
    • Maintainability Warnings
    • Mobility Warnings
    • Naming Warnings
    • Performance Warnings
    • Portability Warnings
    • Reliability Warnings
    • Security Warnings
    • Usage Warnings

    Should it be included as a build task during builds?

    Yes. This is the method I used: http://kentb.blogspot.co.nz/2011_01_01_archive.html

    It can be enabled via the UI if your IDE supports it. However I had issues when different projects used different rulesets (eg, a unit test project may be more relaxed). The procedure from kentb’s blog works around that issue.

    Alternatively you could call FxCop directly from a post build event.

    What is the value from it?

    Well structured code and reduced production issues.

    Are there guidelines to what rules to abide by or is it best to go with the default?

    Again – go with whatever works for you. For example, you may not care that the binaries are not strongly named. The haacked blog post has some good pointers.

    Is it correct to run the analysis as a post build event?

    If you follow kentb’s blog post, or enable it via the IDE GUI (assuming your IDE supports it), then it will be run as part of the build process. If you call FxCop directly, then it will need to be done as a post build event.

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

Sidebar

Related Questions

I'm developing a page that will present the user with a content slider, so
In the iPhone app that I am currently developing, I present several alert views
Present Scenario : I have a set of classes that all take a common
At present I have a TestNG project that calls a JBoss RESTEasy web service.
I am developing an WP7 application that connects to a set of webservices. I
Iam developing one applciation.In that i added the one tableview to present view.I added
I'm developing a simple function that should build a sql condition based on optional
I'm developing a simple Wedding List application, where guests can reserve the present they
(I am developing an app that presents chat messages in a table. But, this
At present I'm having to do something like this to build a Type definition

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.