문제

does anyone know how to or can provide the syntax for running FxCop via command line.

i want to set a task to run a defined rules.fxcop file (this is a empty project that i made with only a select set of rules enabled to reduce noise and check for things i am interested in)

can someone explain how i can accomplish this...

i am guessing i would need to get latest version of the code and compile the .dll first then somehow get the fxcop project to add the dll as a target and run the analysis. then i want the violations found exported via email or saved to a directory.

ideas?

도움이 되었습니까?

해결책

Have you tried something like the following:

fxcopcmd.exe /project:"<path to your .fxcop file>" /file:"<path to your target DLL>" /out:"<path to output report>

다른 팁

I recommend you pony up and buy all new parts...

Try implementing continous integration with CC.NET. In it you can integrate with NUnit, NDepend, NCover, and FxCop. All of which can be e-mailed to you, displayed on a dashboard, or visible through a program in your tray.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top