tags:

views:

154

answers:

2
A: 

Use the fxcop task

Ian
ok. i'll try it
FosterZ
@lan:hi, this fxcop task givin' error of fxcopcmd.exe not found.
FosterZ
Make sure you have FXCop installed.
Ian
it is installed already
FosterZ
+1  A: 

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.

Grant Palin
@Grant Palin: thx, i that article made my day, but now i got another issue, how to give dependencies directory to fxcop,i'm using dependenciesDirectory task within fxcop but no use..may be i dn't know how to give directories..pls have a look.
FosterZ