Ask a questionAsk a question
 

QuestionCan not switch Rule from error to warning

  • Tuesday, September 22, 2009 11:59 AMEissing Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,
    in the Code Analysis Editor I switch a rule from Error to warning ( unckeck Treat Warning as Error). All seems fine, if I build my solution locally on the Development PC. But if I run the same solution on the Build PC I get a build error for rule CA1709. But this rule is switech to warning.

    c:\VLS\MainCIBuild\Sources\Main\Source\Vls\DP.Vls.Web\Shipment\Shipment.aspx.cs(86,0): error : CA1709 : Microsoft.Naming : Correct the casing of 'rcb' in member name 'Shipment.rcbReceiverAddressTypes_SelectedIndexChanged(object, RadComboBoxSelectedIndexChangedEventArgs)' by changing it to 'Rcb'.

    Buildscript-Setting

    <

     

    RunCodeAnalysis>Default</RunCodeAnalysis>

     

     




    Please help.

    Regards Josef


    eisisng
    •  

All Replies

  • Friday, October 02, 2009 7:20 PMMorphByte Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Josef,
          The first thing I will check is the code analysis rules in the build configuration being used locally and on the build server. So open the project file in VS, click on the code analysis tab, and compare the two configuration.


    Good luck!

  • Friday, October 09, 2009 8:38 AMRoahn LuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Josef,

    To narrow down the issue, another way we could try is to use the compiler option in the command line: /warnaserror-.
    http://msdn.microsoft.com/en-us/library/406xhdz3.aspx

    Best regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback, please tell us.
    Welcome to the All-In-One Code Framework!
  • Monday, October 19, 2009 5:30 PMEissing Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello MorphByte, hello luo,

    I have compared the rule configuratin on the build server and on the development computer. There are no differences. All Rules are confiugured to be warnings. 

    The compiler option /warnaserror is also not set. 

    The newest problem with CA is, that I completly disable a rule. But I still get an error for this rule in the Build-Process and no error on the local computer.

    Any Ideas ?

    Regards

    Josef

     

     


    eisisng