When running MSBUILD as part of an automated build process I get:
MSBUILD : error : CA0053 : Unable to load rule assembly ‘c:\program
files (x86)\microsoft visual studio 10.0\team tools\static analysis
tools\fxcop\rules\securityrules.dll’: Could not load file or assembly
‘file:///c:\program files (x86)\microsoft visual studio 10.0\team
tools\static analysis tools\fxcop\rules\securityrules.dll’ or one of
its dependencies. The module was expected to contain an assembly
manifest.
The project contains several rulesets.
Even from inside Visual Studio 2010 SP I get the same message.
I run the Visual Studio 2010 setup and repaired installation. Followed the same approach with Service Pack 1 and everything worked fine.