Use the fxcop task
Ian
2010-03-24 08:25:39
If I may, I suggest you take a look at an article I wrote on the matter some time ago. Slightly old, but still applies.
Long story short, the FxCop task in NantContrib is finicky, and requires having FxCop installed. I like to have binary tools in source control, alongside my code. To make this work, I use NAnt's exec
task to delegate to the local (non-installed) copy of FxCop, which does the work.