Posts tagged ‘FxCop’

Visual Studio 2008 FxCop Errors

I converted a 2005 solution over to 2008 and hit build. I received this error:

MSBUILD : error : Invalid settings passed to CodeAnalysis task

I figured out that the problem was Visual Studio was calling FxCop from the "Visual Studio 8" directory instead of "Visual Studio 9.0". To fix this I had to change an environment variable called "FXCOPDIR" to point to the 2008 instance of Visual Studio.

I’m not sure why the install of 2008 didn’t do this. Oh well.