Getting post-build event errors on running FxCopCmd.exe

1.1k views Asked by At

I have used this line for my post-build to run FxCopCmd.exe:

C:\Program Files (x86)\Microsoft FxCop 10.0\FxCopCmd.exe" /file:"$(TargetPath)" /console

but after I build the project it shows this error:

Error 40 The command "C:\Program Files (x86)\Microsoft FxCop 10.0\FxCopCmd.exe" /file:"C:\csharpForFXCOP\MyTestPrj\bin\MyTestPrj.exe" /console" exited with code 9009.

So what am I doing wrong?

1

There are 1 answers

2
Nicole Calinoiu On

Try running the same command line from a Windows command prompt. If the additional information this provides is not sufficient for you to identify the problem, please add the details to your post.