[英]FxCop static code analysis .dll can be loaded for .NET
我正在使用.NET Framework 4.5,FxCop 10,Jenkins 1.609。
我正在尝试为.NET代码设置静态代码分析。 从假货询问 ,设置所有的环境。 对于引用链接中提到的同一项目,它工作正常。
现在,我添加了我的项目,发现由于以下原因,无法加载某些.dll:
<Exception Keyword="CA0055" Kind="AssemblyLoad"> <Type>Microsoft.FxCop.Common.AssemblyLoadException</Type> <ExceptionMessage>Could not load BCSProducts.dll.</ExceptionMessage> <InnerType>Microsoft.FxCop.Sdk.FxCopException</InnerType> <InnerExceptionMessage>The first successfully loaded assembly for this project was linked against v2.0.50727. 'BCSProducts' was linked against v4.0.30319 and so cannot be analyzed from within the same project.</InnerExceptionMessage> <InnerStackTrace> at Microsoft.FxCop.Engines.Introspection.IntrospectionAnalysisEngine.CanLoadTargetFile(TargetFile target) at Microsoft.FxCop.Common.EngineManager.LoadTargets(TargetFile target, Boolean resetCounts, String loadEngine)</InnerStackTrace> </Exception>
我不知道这是什么意思。 但是我尝试了很多解决方案,但没有一个可行,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.