I need to run FxCop attribute which I have implemented in NAnt build file.
I have NAnt and NAntContrib. I have copied the contents of nantcontrib\bin
to nant\bin folder and have set environment variable to FxCopCmd.exe
.
Then I'm getting the error when I run NAnt script:
invalid attribute (fxcop)
What could be the problem?
It's a bit simpler to invoke FxCop directly from NAnt, without using the NAntContrib task, by using NAnt's
exec
task. For implementation details, have a look at an article I wrote about integrating NAnt and FxCop.Here's the code: