VS hangs while checking custom rules.

I have 2 simple custom rules - one that checks if all classes are marked with author attribute and the second that checks filed names.

I noticed that VS hangs while running that rules. It helps when I uncheck that rules and build a few times checking one more rule after every build. Is it possible that my rules couses a deadlock? While in hang my VS doesn't use processor time.

How can I debug it or find out what is wrong?

Marcin

[458 byte] By [MarcinKsi??ek] at [2007-12-22]
# 1

I can think of two approaches: first, compile and run your rules outside of VS in the standalone GUI, making sure to analyze the project binaries from VS that caused the hang.

You could also invoke the command-line version of FxCop, FxCopCmd.exe, directly and debug that.

DevEnv.exe will allow you to debug an executable.

devenv /debugexe FxCopCmd.exe

After launching, go to the Debug properties, I believe, to set the command-line options for invoking analysis. Your rules will need to be in the proper location, of course, or you'll need to use the /r: switch to specify their location.

MichaelFanning-MS at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Code Analysis and Code Metrics...
# 2
Marcin, do you have any further information on this? If not, I'm going to close this thread.
MichaelFanning-MS at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Code Analysis and Code Metrics...
# 3

I can't find out what is wrong. Disabling one custom rule that checks private fields names helps and the problem exists only inside VS not in standalone FxCop.

Anyway, the problem is general and it probably is in VS build process which is slow, unpredictable and very annoying. We were forced to change our policy and static analysis is performed only once a day in Quality build.

You can close this thread. Thank you for help.

Marcin

MarcinKsi??ek at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Code Analysis and Code Metrics...

Visual Studio Team System

Site Classified