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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:57:25+00:00 2026-06-15T18:57:25+00:00

I have VS2010, Windows 7 bits, FxCop 10.0 I execute Fxcopcmd.exe using Process.Start, and

  • 0

I have VS2010, Windows 7 bits, FxCop 10.0

I execute Fxcopcmd.exe using Process.Start, and I get 513 “exitcode” (error code) value.

Todd King in below reference says:

In this case an exit code of 513 means FxCop had an Analysis Error
(0x01) and an assembly references error (0x200)

http://social.msdn.microsoft.com/Forums/en-US/vstscode/thread/1191af28-d262-4e4f-95d9-73b682c2044c/

I think if it is like

    [Flags]
    public enum FxCopErrorCodes
    {
        NoErrors = 0x0,
        AnalysisError = 0x1,  // -fatalerror
        RuleExceptions = 0x2,
        ProjectLoadError = 0x4,
        AssemblyLoadError = 0x8,
        RuleLibraryLoadError = 0x10,
        ImportReportLoadError = 0x20,
        OutputError = 0x40,
        CommandlineSwitchError = 0x80,
        InitializationError = 0x100,
        AssemblyReferencesError = 0x200,
        BuildBreakingMessage = 0x400,
        UnknownError = 0x1000000,
    }

513 integer value is 0x201 (view int to hex string and Enum.Parse fails to cast string )

How can I know errors (Analysis Error (0x01) and an assembly references error (0x200)) programmatically using only exitcode (513 , 0x201) value ?

More about Error Codes for FxCopCmd and Code Analysis:

  • http://msdn2.microsoft.com/en-us/library/bb164705(VS.80).aspx
  • http://msdn2.microsoft.com/en-us/library/ms245349(VS.80).aspx
  • 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-15T18:57:26+00:00Added an answer on June 15, 2026 at 6:57 pm

    You can test for a specific value of your enum using a AND bitwise operation:

    FxCopErrorCodes code = (FxCopErrorCodes)0x201;
    if ((code & FxCopErrorCodes.InitializationError) == FxCopErrorCodes.InitializationError)
    {
        Console.WriteLine("InitializationError");
    }
    

    You could get the whole list of values using something like:

    private static IEnumerable<FxCopErrorCodes> GetMatchingValues(FxCopErrorCodes enumValue)
    {
        // Special case for 0, as it always match using the bitwise AND operation
        if (enumValue == 0)
        {
            yield return FxCopErrorCodes.NoErrors;
        }
    
        // Gets list of possible values for the enum
        var values = Enum.GetValues(typeof(FxCopErrorCodes)).Cast<FxCopErrorCodes>();
    
        // Iterates over values and return those that match
        foreach (var value in values)
        {
            if (value > 0 && (enumValue & value) == value)
            {
                yield return value;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a windows application using VS2010 and C# 4.0. I have a MDI
From VS2010 in Windows 7 using Directory.Delete(path) from the VS debugger. I have full
I'm using VS2010, Windows 7 I have a panel with lots of picture-boxes. It
I have the following script set as my VS2010 pre-build script: cd $(ProjectDir) C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe
I have a windows forms application written in VS2010 with C# and get the
I have developed a windows application with vs2010 and c#. I would like to
I have a VS2010 unit test project set to using SpecFlow 1.8.1 and mstest.
I have installed VS2010 and MVC2 and testing a simple form using tinyMCE. When
I'm using MVC2 with VS2010 I have a view that has two partial views
I have VS2010 Premium RTM version on Windows 7 Ultimate x64 . In the

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.