In my test I use the baseline report and I am interested in catching the situation when FxCop detects new messages. I am checking ERRORLEVEL in the batch file but FxCopCmd seems to not report any error even if new exceptions were found in the code. Could you tell me what is not correct in my approach and give me some directions ? Thank you.
Set your project options to only write new messages to the output file (but save excluded messages in the project file). Then, after testing, look to see if the output file exists. If it does, there were new unexcluded errors.