开发者

MSBUILD error CA0053 : Unable to load rule assembly

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开发者_如何学C\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.


An possible reason could be the fact that in some cases the full path of the tools is stored in the projects file. I had the problem with VS 2012. See MS Connect Error


An possible solution to this problem is to unblock the files (right click -> properties -> unblock) when they are downloaded from a different computer.


I run the Visual Studio 2010 setup and repaired installation. Followed the same approach with Service Pack 1 and everything worked fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜