Bohn
Bohn

Reputation: 26919

Getting post-build event errors on running FxCopCmd.exe

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?

Upvotes: 1

Views: 1093

Answers (1)

Nicole Calinoiu
Nicole Calinoiu

Reputation: 20992

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.

Upvotes: 1

Related Questions