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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:43:47+00:00 2026-05-26T11:43:47+00:00

For working with VS2005 and VS2008 we defined our current ca rules in a

  • 0

For working with VS2005 and VS2008 we defined our current ca rules in a sharepoint list.

In the list there is a column where all excluded assemblies are listed semikolon sepperated.

A custom build task read the sharepoint list and was responsible to exclude the specified rule in the project file with “-!CA…” in a team build.

Now we are planning to migrate our projects to VS 2010 and the new code analysis ruleset make some problems.

First idea was to

  • create the ruleset file from sharepoint
  • add a GlobalSupressions.cs as a solution item and add the file in every project as a linked file
  • create a SupressMessage entry in the GlobalSupressions.cs with target namespace and the exclude

I tested it with a small solution with one project.
It looks like that the target namespace doesnt work.

I searched around stackoverflow and the internet and the main answer was that suppressions with target namespace are not working.

The main application contains more than 250 projects.

For me it seems that the only working way is to create n custom rulesets for the different projects where the excluded rules are disabled.

I dont want to go through the complete application and resuppress all the rules in code.

How are you working with the new rulessets in such a situation?

Any idea how i can work with the new rulesets in a simple and maintainable way?
The sharepoint list is the leading part for the definition of the code analysis rules.

Edit 1

In previous projects we manage our definition of the code analysis ruleset in a sharepoint list. The list displays all ca rules as a list

  • ca number
  • activated
  • handled as error
  • exclusion (contains project name party like ‘Test’ or full project/assembly name)

From the list a ruleset is created where

  • activated + handleAsError = rule is enabled
  • !activated = disable rule
  • activated + !handleAsError = warning

If the exclusion column has a value like ‘Test’ for example, then in all test project the rule should be disabled.

  • 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-26T11:43:48+00:00Added an answer on May 26, 2026 at 11:43 am

    Nothing is forcing you to move to the new .ruleset file approach in VS2010. You can, if you wish, continue to use .fxcop project files or fxcopcmd.exe command line switches in your builds, so your existing approach should presumably continue to work (possibly after a few minor tweaks).

    That said, I’m guessing that there is probably a much simpler way to achieve what you wish. However, I’m not sure that I fully understand your end goal since your question focuses much more on adapting your existing approach. If you would like assistance with attempting to find an approach that fits well with the new tool capabilities, could you please provide more details concerning what exactly you are attempting to accomplish?

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

Sidebar

Related Questions

We have a few developers working on the same VS2005 solution, but our source
NOTE: Using .NET 2.0, and VS2005 as IDE Hello all, I'm working on logging
When working on a VS2005 project that involves referencing Microsoft.SharePoint.dll, building the project causes
I am working in VS2005, I have a part of freeimage source code. I
Well, simple question. I'm working with VS2008 on an ASP.NET web application which has
Occasionally while attempting to save a Crystal Report that I'm working on in VS2008,
I am working in C# and VS2008. I have a WPF application containing a
I'm working on a project in VS2008 that I'm compiling in MBCS but I
I've recently installed VS2008. The project I'm working on uses vstest and I have
I'm working on a WTL project, actually WTL 8.1 with VS2008. In many tutorials

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.